Skip to content

Commit

Permalink
Merge pull request #111 from broadinstitute/dp-libstats
Browse files Browse the repository at this point in the history
isnv bug fixes
  • Loading branch information
dpark01 committed Mar 11, 2015
2 parents 1c75f78 + dc6cb40 commit 5c38693
Show file tree
Hide file tree
Showing 19 changed files with 15 additions and 7,097 deletions.
618 changes: 0 additions & 618 deletions data/snpEff/zebov.sl/genes.gbk

This file was deleted.

6 changes: 5 additions & 1 deletion intrahost.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def compute_library_bias(isnvs, inBam, inConsFasta) :
'''
alleleCol = 7 # First column of output with allele counts
samtoolsTool = SamtoolsTool()
readGroups = samtoolsTool.getReadGroups(inBam)
readGroups = list(r for r in samtoolsTool.getReadGroups(inBam)
if samtoolsTool.count(inBam, ['-r', r])>0)
tempDir = tempfile.mkdtemp()
libBams = [os.path.join(tempDir, groupID + '.bam') for groupID in readGroups]
for groupID, libBam in zip(readGroups, libBams) :
Expand Down Expand Up @@ -233,6 +234,9 @@ def get_mpileup_allele_counts(inBam, chrom, pos, inConsFasta) :
'-f', inConsFasta])
with open(pileupFileName) as pileupFile :
words = pileupFile.readline().split('\t')
if len(words)<5:
# empty output files means no reads pile up on this position
return {}
alleleCounts = parse_alleles_string(words[4])

# '.' is whatever mpileup thinks is the reference base (which might be
Expand Down
362 changes: 0 additions & 362 deletions old-scripts/dpark/gene_stats.py

This file was deleted.

92 changes: 0 additions & 92 deletions old-scripts/iSNV/example_files/patients_all.txt

This file was deleted.

1,609 changes: 0 additions & 1,609 deletions old-scripts/iSNV/example_files/vphaser_iSNVs_combined_NXT1.txt

This file was deleted.

1,012 changes: 0 additions & 1,012 deletions old-scripts/iSNV/example_files/vphaser_iSNVs_combined_NXT1_freq.txt

This file was deleted.

This file was deleted.

1,617 changes: 0 additions & 1,617 deletions old-scripts/iSNV/example_files/vphaser_iSNVs_combined_NXT2.txt

This file was deleted.

20 changes: 0 additions & 20 deletions old-scripts/iSNV/iSNV-pipeline-edited.txt

This file was deleted.

77 changes: 0 additions & 77 deletions old-scripts/iSNV/iSNV-pipeline.txt

This file was deleted.

Loading

0 comments on commit 5c38693

Please sign in to comment.