Package htsjdk.samtools.sra
Class SRAUtils
java.lang.Object
htsjdk.samtools.sra.SRAUtils
Provides some functionality which can be used by other classes
Created by andrii.nikitiuk on 10/28/15.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
References are stored in SRA table in chunks of 5k bases per row, while last chunk of a reference is less or equal than 5k bases in size (even if the next reference follows). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
getNumberOfReads
(ngs.ReadCollection run) Is used to build RecordRangeInfogetReferencesLengthsAligned
(ngs.ReadCollection run) Loads reference lengths from a read collection.
-
Field Details
-
REFERENCE_ALIGNMENT
public static final int REFERENCE_ALIGNMENTReferences are stored in SRA table in chunks of 5k bases per row, while last chunk of a reference is less or equal than 5k bases in size (even if the next reference follows). So, it will be optimal if we align reference sizes to 5k bases to read by reference rows.- See Also:
-
-
Constructor Details
-
SRAUtils
public SRAUtils()
-
-
Method Details
-
getNumberOfReads
public static long getNumberOfReads(ngs.ReadCollection run) throws ngs.ErrorMsg Is used to build RecordRangeInfo- Parameters:
run
- open read collection- Returns:
- total number of reads (both aligned and unaligned) in SRA archive
- Throws:
ngs.ErrorMsg
-
getReferencesLengthsAligned
Loads reference lengths from a read collection. Aligns reference lengths by REFERENCE_ALIGNMENT bases for optimal loads of alignments (references are stored in REFERENCE_ALIGNMENT bases chunks in SRA table) Is used to build RecordRangeInfo- Parameters:
run
- single opened read collection- Returns:
- list with references lengths
- Throws:
ngs.ErrorMsg
-