Search in sources :

Example 66 with BeforeClass

use of org.testng.annotations.BeforeClass in project gatk-protected by broadinstitute.

the class ReferenceConfidenceModelUnitTest method setUp.

@BeforeClass
public void setUp() {
    header = ArtificialReadUtils.createArtificialSamHeader(1, 1, 1000);
    rg = new SAMReadGroupRecord(RGID);
    rg.setSample(sample);
    header.addReadGroup(rg);
    parser = new GenomeLocParser(header.getSequenceDictionary());
}
Also used : SAMReadGroupRecord(htsjdk.samtools.SAMReadGroupRecord) GenomeLocParser(org.broadinstitute.hellbender.utils.GenomeLocParser) BeforeClass(org.testng.annotations.BeforeClass)

Example 67 with BeforeClass

use of org.testng.annotations.BeforeClass in project gatk-protected by broadinstitute.

the class ReadThreadingAssemblerUnitTest method setup.

@BeforeClass
public void setup() throws FileNotFoundException {
    seq = new CachingIndexedFastaSequenceFile(new File(hg19_chr1_1M_Reference));
    header = ArtificialReadUtils.createArtificialSamHeader(seq.getSequenceDictionary());
}
Also used : CachingIndexedFastaSequenceFile(org.broadinstitute.hellbender.utils.fasta.CachingIndexedFastaSequenceFile) CachingIndexedFastaSequenceFile(org.broadinstitute.hellbender.utils.fasta.CachingIndexedFastaSequenceFile) File(java.io.File) IndexedFastaSequenceFile(htsjdk.samtools.reference.IndexedFastaSequenceFile) BeforeClass(org.testng.annotations.BeforeClass)

Example 68 with BeforeClass

use of org.testng.annotations.BeforeClass in project gatk by broadinstitute.

the class AnnotateTargetsIntegrationTest method createTargetFile.

@BeforeClass
public void createTargetFile() throws IOException {
    final SAMSequenceDictionary referenceDictionary = resolveReferenceDictionary();
    final List<SimpleInterval> targetIntervals = createRandomIntervals(referenceDictionary, NUMBER_OF_TARGETS, MIN_TARGET_SIZE, MAX_TARGET_SIZE, MEAN_TARGET_SIZE, TARGET_SIZE_STDEV);
    final List<Target> targets = targetIntervals.stream().map(Target::new).collect(Collectors.toList());
    TargetWriter.writeTargetsToFile(TARGET_FILE, targets);
    final Index index = IndexFactory.createIndex(TARGET_FILE, new TargetCodec(), IndexFactory.IndexType.LINEAR);
    final LittleEndianOutputStream stream = new LittleEndianOutputStream(new FileOutputStream(TARGET_FILE_IDX));
    index.write(stream);
    stream.close();
}
Also used : LittleEndianOutputStream(htsjdk.tribble.util.LittleEndianOutputStream) TargetCodec(org.broadinstitute.hellbender.utils.codecs.TargetCodec) SimpleInterval(org.broadinstitute.hellbender.utils.SimpleInterval) Index(htsjdk.tribble.index.Index) SAMSequenceDictionary(htsjdk.samtools.SAMSequenceDictionary) BeforeClass(org.testng.annotations.BeforeClass)

Example 69 with BeforeClass

use of org.testng.annotations.BeforeClass in project gatk by broadinstitute.

the class ReferenceConfidenceModelUnitTest method setUp.

@BeforeClass
public void setUp() {
    header = ArtificialReadUtils.createArtificialSamHeader(1, 1, 1000);
    rg = new SAMReadGroupRecord(RGID);
    rg.setSample(sample);
    header.addReadGroup(rg);
    parser = new GenomeLocParser(header.getSequenceDictionary());
}
Also used : SAMReadGroupRecord(htsjdk.samtools.SAMReadGroupRecord) GenomeLocParser(org.broadinstitute.hellbender.utils.GenomeLocParser) BeforeClass(org.testng.annotations.BeforeClass)

Example 70 with BeforeClass

use of org.testng.annotations.BeforeClass in project gatk 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)

Aggregations

BeforeClass (org.testng.annotations.BeforeClass)1186 Series (com.axibase.tsd.api.model.series.Series)178 File (java.io.File)157 ArrayList (java.util.ArrayList)78 HashMap (java.util.HashMap)43 ClusterControllerManager (org.apache.helix.integration.manager.ClusterControllerManager)37 Injector (com.google.inject.Injector)36 Properties (java.util.Properties)35 Path (org.apache.hadoop.fs.Path)33 ClusterSetup (org.apache.helix.tools.ClusterSetup)33 Configuration (org.apache.hadoop.conf.Configuration)31 BigDecimal (java.math.BigDecimal)29 URL (java.net.URL)28 MockParticipantManager (org.apache.helix.integration.manager.MockParticipantManager)27 Date (java.util.Date)26 Server (org.eclipse.jetty.server.Server)25 ServerConnector (org.eclipse.jetty.server.ServerConnector)25 ODatabaseDocumentTx (com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx)23 IOException (java.io.IOException)23 Path (java.nio.file.Path)23