Skip to content

Commit 5e7511d

Browse files
Merge pull request #240 from AdamaJava/tidyup_qannotate
Tidyup qannotate
2 parents e8d5980 + c06fd9e commit 5e7511d

File tree

10 files changed

+34
-1198
lines changed

10 files changed

+34
-1198
lines changed

qannotate/src/au/edu/qimr/qannotate/Main.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import au.edu.qimr.qannotate.modes.SnpEffMode;
2121
import au.edu.qimr.qannotate.modes.TandemRepeatMode;
2222
import au.edu.qimr.qannotate.modes.Vcf2maf;
23-
import au.edu.qimr.qannotate.modes.Vcf2mafTmp;
2423

2524
public class Main {
2625

@@ -57,12 +56,8 @@ public static void main(final String[] args) throws Exception {
5756
new TandemRepeatMode( options );
5857
} else if (options.getMode() == Options.MODE.make_valid) {
5958
new MakeValidMode( options );
60-
// } else if (options.getMode() == Options.MODE.snppileup) {
61-
// new SnpPileupMode( options );
6259
} else if (options.getMode() == Options.MODE.overlap) {
6360
new OverlapMode( options );
64-
} else if (options.getMode() == Options.MODE.vcf2maftmp) {
65-
new Vcf2mafTmp( options );
6661
} else if (options.getMode() == null) {
6762
throw new IllegalArgumentException("No mode was specified on the commandline - please add the \"-mode\" option") ;
6863
} else {

qannotate/src/au/edu/qimr/qannotate/modes/CustomerConfidenceMode.java

Lines changed: 0 additions & 120 deletions
This file was deleted.

qannotate/src/au/edu/qimr/qannotate/modes/Vcf2maf.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
import au.edu.qimr.qannotate.Options;
1717
import au.edu.qimr.qannotate.utils.MafElement;
18-
import au.edu.qimr.qannotate.utils.SampleColumn;
1918
import au.edu.qimr.qannotate.utils.SnpEffConsequence;
2019
import au.edu.qimr.qannotate.utils.SnpEffMafRecord;
2120

@@ -61,7 +60,7 @@ public class Vcf2maf extends AbstractMode {
6160
protected final Map<String,String> effRanking = new HashMap<>();
6261
private final String center;
6362
private final String sequencer;
64-
private final String donorId;
63+
6564
private final ContentType contentType;
6665
//private boolean hasACLAP = false; ignore ACLAP in vcf2maf mode
6766
private final int testColumn;
@@ -70,7 +69,8 @@ public class Vcf2maf extends AbstractMode {
7069
private String controlSample;
7170
private String testBamId;
7271
private String controlBamId;
73-
private int controlColumn;
72+
private String donorId;
73+
private int controlColumn;
7474
private VcfFileMeta meta;
7575

7676
//for unit test
@@ -121,7 +121,7 @@ public Vcf2maf( Options option) throws Exception {
121121
meta.getFirstControlSample().ifPresent((s) -> this.controlSample = s);
122122
meta.getFirstControlBamUUID().ifPresent((s) -> this.controlBamId = s);
123123
meta.getFirstTestBamUUID().ifPresent((s) -> this.testBamId = s);
124-
this.donorId = option.getDonorId() == null ? SampleColumn.getDonorId(reader.getHeader()) : option.getDonorId();
124+
meta.getFirstDonorID().ifPresent(s -> this.donorId = s);
125125

126126
logger.info(String.format("Test Sample %s is located on column %d after FORMAT", testSample, testColumn));
127127
if (ContentType.multipleSamples(contentType)) {

0 commit comments

Comments
 (0)