Class SAMHeaderHadoopUtils
java.lang.Object
fr.ens.biologie.genomique.eoulsan.modules.mapping.hadoop.SAMHeaderHadoopUtils
This class contains methods and classes related to save and load SAM file header in Hadoop
mappers and reducers.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class allow to save the SAM header read by a mapper. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic htsjdk.samtools.SAMSequenceDictionaryCreate a SAMSequenceDictionary from the SAM header in a list of String.loadSAMHeaders(org.apache.hadoop.mapreduce.JobContext context) Load SAM headers.
-
Constructor Details
-
SAMHeaderHadoopUtils
public SAMHeaderHadoopUtils()
-
-
Method Details
-
loadSAMHeaders
public static List<String> loadSAMHeaders(org.apache.hadoop.mapreduce.JobContext context) throws IOException Load SAM headers.- Parameters:
context- the Hadoop context- Returns:
- a list of String with the SAM headers
- Throws:
IOException- if an error occurs while loading the headers
-
createSAMSequenceDictionaryFromSAMHeader
public static htsjdk.samtools.SAMSequenceDictionary createSAMSequenceDictionaryFromSAMHeader(List<String> headers) Create a SAMSequenceDictionary from the SAM header in a list of String.- Parameters:
headers- the list of String- Returns:
- a new SAMSequenceDictionary object with the SAM headers
-