Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
gnFragmentSpec Class Reference gnFragmentSpec contains a list of specs which make up a sequence fragment.
More...
#include <gnFragmentSpec.h >
Inheritance diagram for gnFragmentSpec::
List of all members.
Detailed Description
gnFragmentSpec contains a list of specs which make up a sequence fragment.
It also contains a list of features which relate to the sequence fragment. Finally it contains a list of sequence related header data. This class is usually created and filled by a file reader class like gnGBKSource .
Definition at line 35 of file gnFragmentSpec.h .
Constructor & Destructor Documentation
gnFragmentSpec::gnFragmentSpec (
)
gnFragmentSpec::~gnFragmentSpec (
) [virtual]
gnFragmentSpec::gnFragmentSpec (
const gnFragmentSpec & s )
Member Function Documentation
void gnFragmentSpec::AddSpec (
gnBaseSpec * spec ,
const uint32 i = UINT32_MAX ) [inline, virtual]
void gnFragmentSpec::Clear (
) [virtual]
gnFragmentSpec * gnFragmentSpec::Clone (
) const [inline, virtual]
gnFragmentSpec * gnFragmentSpec::CloneRange (
const gnSeqI startI ,
const gnSeqI len ) const [virtual]
Copies a specified range of bases and returns a pointer to the resulting gnFragmentSpec.
You must delete the copy when you are finished with it.
Parameters:
startI
The first base pair to copy
len
The length of the piece to copy
Returns:
A copy of the gnFragmentSpec containing only the specified bases
Definition at line 100 of file gnFragmentSpec.cpp .
Referenced by gnGenomeSpec::CloneRange ().
void gnFragmentSpec::CropEnd (
gnSeqI cropLen ) [virtual]
Crop the last cropLen bases from the sequence.
CropEnd will delete features and headers associated with the cropped bases.
Parameters:
cropLen
The number of base pairs to delete from the end.
Reimplemented from gnMultiSpec .
Definition at line 92 of file gnFragmentSpec.cpp .
void gnFragmentSpec::CropStart (
gnSeqI cropLen ) [virtual]
Crop the first cropLen bases from the sequence.
CropStart will delete features and headers associated with the cropped bases.
Parameters:
cropLen
The number of base pairs to delete from the beginning.
Reimplemented from gnMultiSpec .
Definition at line 84 of file gnFragmentSpec.cpp .
void gnFragmentSpec::GetBrokenFeatures (
const gnLocation & lt ,
vector< gnBaseFeature *> & feature_vector ) const [virtual]
Creates a list of features which may have been broken by an edit.
Parameters:
lt
The coordinates containing the features to return.
feature_vector
The vector to store features in.
Reimplemented from gnMultiSpec .
Definition at line 77 of file gnFragmentSpec.cpp .
Referenced by gnGenomeSpec::GetBrokenFeatures ().
void gnFragmentSpec::GetContainedFeatures (
const gnLocation & lt ,
vector< gnBaseFeature *> & feature_vector ,
vector< uint32 > & index_vector ) const [virtual]
Creates a list of all features which are contained by coordinates specified.
Parameters:
lt
The coordinates containing the features to return.
feature_vector
The vector to store features in.
index_vector
A vector of indices which correspond to the features.
Reimplemented from gnMultiSpec .
Definition at line 63 of file gnFragmentSpec.cpp .
Referenced by gnGenomeSpec::GetContainedFeatures ().
uint32 gnFragmentSpec::GetFeatureListLength (
) const [inline, virtual]
void gnFragmentSpec::GetIntersectingFeatures (
const gnLocation & lt ,
vector< gnBaseFeature *> & feature_vector ,
vector< uint32 > & index_vector ) const [virtual]
Creates a list of all features which intersect the coordinates specified.
Parameters:
lt
The coordinates intersecting the features to return.
feature_vector
The vector to store features in.
index_vector
A vector of indices which correspond to the features.
Reimplemented from gnMultiSpec .
Definition at line 70 of file gnFragmentSpec.cpp .
Referenced by CloneRange (), and gnGenomeSpec::GetIntersectingFeatures ().
gnContigSpec * gnFragmentSpec::GetSpecByBase (
const gnSeqI baseI ) const [inline, virtual]
Get the spec from the list of subspecs which contains the specified base pair.
Parameters:
baseI
The base pair index.
Returns:
The spec.
Reimplemented from gnMultiSpec .
Definition at line 105 of file gnFragmentSpec.h .
uint32 gnFragmentSpec::GetSpecListLength (
) const [inline, virtual]
void gnFragmentSpec::RemoveFeature (
const uint32 i ) [inline, virtual]
void gnFragmentSpec::RemoveSpec (
uint32 i ) [inline, virtual]
Remove a subspec from this spec.
Parameters:
i
The index of the subspec to remove.
Reimplemented from gnMultiSpec .
Definition at line 118 of file gnFragmentSpec.h .
void gnFragmentSpec::SetReverseComplement (
const boolean value ) [virtual]
Member Data Documentation
The documentation for this class was generated from the following files:
Generated at Fri Nov 30 15:36:55 2001 for libGenome by
1.2.8.1 written by Dimitri van Heesch ,
© 1997-2001