Skip to content

Commit

Permalink
fixed unit test to not rely on broad filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
kcibul committed Jun 1, 2014
1 parent 5c24107 commit 69b7a37
Showing 1 changed file with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,11 @@ public class MuTectWalkerUnitTest extends BaseTest {
public byte ref = 'A';
public byte alt = 'T';

// example genome loc parser for this test, can be deleted if you don't use the reference
private GenomeLocParser genomeLocParser;

// example fasta index file, can be deleted if you don't use the reference
private IndexedFastaSequenceFile seq;

@BeforeClass
public void setup() throws FileNotFoundException {
// sequence
seq = new CachingIndexedFastaSequenceFile(new File(hg19Reference));
genomeLocParser = new GenomeLocParser(seq);
}

@Test
public void basicPileupTest() {
final SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(seq.getSequenceDictionary());
final GenomeLoc myLocation = genomeLocParser.createGenomeLoc("1", 10);
final SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(5, 1, 10000);
GenomeLocParser genomeLocParser = new GenomeLocParser(header.getSequenceDictionary());
final GenomeLoc myLocation = genomeLocParser.createGenomeLoc("chr1", 10);

final int pileupSize = 100;
final int readLength = 10;
Expand Down

0 comments on commit 69b7a37

Please sign in to comment.