Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for variant review image and meta data generation
- Loading branch information
Showing
13 changed files
with
353 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.broad.igv.sam.mutreview; | ||
|
||
|
||
import org.broad.igv.sam.AlignmentCounts; | ||
|
||
public class BaseCounts { | ||
|
||
public static char [] bases = {'A', 'C', 'T', 'G', 'N'}; | ||
public int totalCount; | ||
public int [] negCounts; | ||
public int [] posCounts; | ||
public int delCount; | ||
public int insCount; | ||
|
||
public BaseCounts(AlignmentCounts ac, int pos) { | ||
|
||
negCounts = new int[5]; | ||
posCounts = new int[5]; | ||
|
||
for(int i=0; i<5; i++) { | ||
negCounts[i] = ac.getNegCount(pos, (byte) bases[i]); | ||
posCounts[i] = ac.getPosCount(pos, (byte) bases[i]); | ||
} | ||
delCount = ac.getDelCount(pos); | ||
insCount = ac.getInsCount(pos); | ||
totalCount = ac.getTotalCount(pos); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.