Search in sources :

Example 6 with GenomeLocParser

use of org.broadinstitute.hellbender.utils.GenomeLocParser in project gatk-protected by broadinstitute.

the class AssemblyResultSetUnitTest method init.

@BeforeClass
public void init() {
    header = ArtificialReadUtils.createArtificialSamHeader(1, 1, 1000000);
    genomeLocParser = new GenomeLocParser(header.getSequenceDictionary());
}
Also used : GenomeLocParser(org.broadinstitute.hellbender.utils.GenomeLocParser) BeforeClass(org.testng.annotations.BeforeClass)

Example 7 with GenomeLocParser

use of org.broadinstitute.hellbender.utils.GenomeLocParser in project gatk by broadinstitute.

the class BaseTest method initGenomeLocParser.

@BeforeClass
public void initGenomeLocParser() throws FileNotFoundException {
    hg19ReferenceReader = new CachingIndexedFastaSequenceFile(new File(hg19MiniReference));
    hg19Header = new SAMFileHeader();
    hg19Header.setSequenceDictionary(hg19ReferenceReader.getSequenceDictionary());
    hg19GenomeLocParser = new GenomeLocParser(hg19ReferenceReader);
}
Also used : CachingIndexedFastaSequenceFile(org.broadinstitute.hellbender.utils.fasta.CachingIndexedFastaSequenceFile) SAMFileHeader(htsjdk.samtools.SAMFileHeader) GenomeLocParser(org.broadinstitute.hellbender.utils.GenomeLocParser) CachingIndexedFastaSequenceFile(org.broadinstitute.hellbender.utils.fasta.CachingIndexedFastaSequenceFile) File(java.io.File) BeforeClass(org.testng.annotations.BeforeClass)

Example 8 with GenomeLocParser

use of org.broadinstitute.hellbender.utils.GenomeLocParser in project gatk by broadinstitute.

the class LocusIteratorByStateBaseTest method beforeClass.

@BeforeClass
public void beforeClass() {
    header = ArtificialReadUtils.createArtificialSamHeader(1, 1, 1000);
    genomeLocParser = new GenomeLocParser(header.getSequenceDictionary());
}
Also used : GenomeLocParser(org.broadinstitute.hellbender.utils.GenomeLocParser) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

GenomeLocParser (org.broadinstitute.hellbender.utils.GenomeLocParser)8 BeforeClass (org.testng.annotations.BeforeClass)7 CachingIndexedFastaSequenceFile (org.broadinstitute.hellbender.utils.fasta.CachingIndexedFastaSequenceFile)3 SAMFileHeader (htsjdk.samtools.SAMFileHeader)2 SAMReadGroupRecord (htsjdk.samtools.SAMReadGroupRecord)2 File (java.io.File)2 ReferenceSequenceFile (htsjdk.samtools.reference.ReferenceSequenceFile)1 FileNotFoundException (java.io.FileNotFoundException)1 UserException (org.broadinstitute.hellbender.exceptions.UserException)1 NDNCigarReadTransformer (org.broadinstitute.hellbender.transformers.NDNCigarReadTransformer)1