Skip to content

Commit 750d4ef

Browse files
committed
added automated VCF indexing to VCF BED intersection code
1 parent a745eb3 commit 750d4ef

File tree

2 files changed

+87
-3
lines changed

2 files changed

+87
-3
lines changed

src/vcfutils/VCFBedIntersect.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ public static void intersectBedAndVCF(Path vcfPath, Path bedPath, Path outputFol
4242
VCFFileReader reader = null;
4343
//VCFUtils.createTemporaryIndexedVcfFromInput(vcfPath.toFile(), "temp");
4444
File tempFile = vcfPath.toFile();
45+
File file2 = VCFUtils.createTemporaryIndexedVcfFromInput(tempFile, "temp_");
4546

4647
Path outputVcf = outputFolder.resolve("intersected.vcf");
4748

4849

4950
//tempFile = VCFUtils.createTemporaryIndexedVcfFromInput(vcfPath.toFile(), "temp");
50-
reader = new VCFFileReader(tempFile);
51+
reader = new VCFFileReader(file2);
5152

5253

5354

@@ -87,8 +88,9 @@ public static void intersectBedAndVCF(Path vcfPath, Path bedPath, Path outputFol
8788
vcfWriter.close();
8889
}
8990

90-
91-
91+
file2.delete();
92+
File file4 = new File(file2.toString()+".idx");
93+
file4.delete();
9294

9395

9496

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
com\psl\automation\panels\VcfBedIntersectionPanel$4.class
2+
com\psl\swingexample\JIFrameDemo$1.class
3+
com\psl\swingexample\OpenMenu.class
4+
com\psl\automation\panels\QCComparePanel$1.class
5+
com\psl\swingexample\DisplayGraphics.class
6+
com\psl\swingexample\JIFrameDemo.class
7+
com\psl\swingexample\Notepad.class
8+
vcfutils\ComparisonResult.class
9+
com\psl\automation\main\FileChooserDemo.class
10+
com\psl\automation\panels\CompareVcfPanel$6.class
11+
com\psl\automation\main\MainGui$2.class
12+
com\psl\automation\main\Interval.class
13+
com\psl\automation\panels\BarcodeMetricsPanel$1.class
14+
com\psl\automation\panels\CompareVcfPanel$2.class
15+
com\psl\automation\panels\BedUtilitiesPanel$3.class
16+
com\psl\automation\panels\QCComparePanel$5.class
17+
com\psl\automation\panels\TsTvMetricsPanel$2.class
18+
vcfutils\VCFrecord.class
19+
com\psl\automation\panels\CompareVcfPanel$5.class
20+
com\psl\automation\panels\CompareVcfPanel.class
21+
com\psl\automation\panels\VcfBedIntersectionPanel.class
22+
hsutils\BAMParser.class
23+
liftoverutils\BedInterval.class
24+
com\psl\automation\fileCompare\VCFrecord.class
25+
com\psl\automation\panels\TsTvMetricsPanel.class
26+
com\psl\swingexample\JIFrameDemo$2.class
27+
com\psl\automation\panels\TsTvMetricsPanel$1.class
28+
com\psl\automation\panels\QCComparePanel$4.class
29+
vcfutils\VCFUtils.class
30+
hsutils\BamSorter.class
31+
gatkUtils\StreamGobbler.class
32+
liftoverutils\IntervalUtils.class
33+
vcfutils\VariantExceptions.class
34+
vcfutils\TsTvStatistics$1.class
35+
com\psl\automation\panels\VcfBedIntersectionPanel$3.class
36+
com\psl\automation\panels\BedUtilitiesPanel$2.class
37+
com\psl\automation\panels\BarcodeMetricsPanel.class
38+
com\psl\automation\panels\BedUtilitiesPanel.class
39+
vcfutils\CompareUtils.class
40+
liftoverutils\LiftOverDriver.class
41+
vcfutils\TsTvStatistics.class
42+
com\psl\swingexample\MyProgress.class
43+
gatkUtils\GatkThread.class
44+
com\psl\automation\main\MainGui.class
45+
qcutils\QCMetricsCompare.class
46+
com\psl\automation\panels\LiftOverUtilPanel.class
47+
liftoverutils\Chain.class
48+
com\psl\automation\main\MainGui$TabSelected.class
49+
com\psl\automation\panels\QCComparePanel$3.class
50+
gatkUtils\GatkUtils.class
51+
com\psl\automation\panels\CompareVcfPanel$1.class
52+
com\psl\swingexample\DigitalWatch.class
53+
qcutils\QCCompareResults.class
54+
com\psl\automation\main\MainGui$1.class
55+
com\psl\automation\panels\CompareVcfPanel$4.class
56+
com\psl\automation\panels\QCComparePanel.class
57+
com\psl\automation\main\BigTextField$1.class
58+
hsutils\TestAl.class
59+
com\psl\automation\panels\QCComparePanel$2.class
60+
com\psl\automation\panels\VcfBedIntersectionPanel$2.class
61+
liftoverutils\Interval.class
62+
com\psl\automation\main\FileChooserDemo$1.class
63+
com\psl\automation\panels\BedUtilitiesPanel$1.class
64+
com\psl\automation\annotation\Driver.class
65+
com\psl\automation\annotation\VariationReporter.class
66+
vcfutils\VCFBedIntersect.class
67+
com\psl\swingexample\MainScreen.class
68+
com\psl\automation\main\BigTextField.class
69+
bedUtils\BedUtils.class
70+
vcfutils\VariantTypes.class
71+
com\psl\automation\panels\BedUtilitiesPanel$4.class
72+
vcfutils\TsTvStatistics$2.class
73+
bedUtils\Chromosome.class
74+
com\psl\swingexample\FirstSwingExample.class
75+
com\psl\automation\panels\BarcodeMetricsPanel$2.class
76+
com\psl\automation\panels\CompareVcfPanel$3.class
77+
com\psl\automation\panels\VcfBedIntersectionPanel$1.class
78+
liftoverutils\ChainException.class
79+
com\psl\automation\panels\TsTvMetricsPanel$3.class
80+
liftoverutils\IntervalTree.class
81+
vcfutils\TestVCFreader.class
82+
liftoverutils\IntervalNode.class

0 commit comments

Comments
 (0)