Skip to content

Commit

Permalink
Merge pull request #235 from abyzovlab/master
Browse files Browse the repository at this point in the history
sync with master
  • Loading branch information
arpanda authored Jul 25, 2024
2 parents a5c4267 + 77b6c4e commit b5ae62c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cnvpytor/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def main():
parser.add_argument('-gc_auto', '--gc_auto', action='store_true',
help="use autosomal GC correction for X, Y and MT")
parser.add_argument('-gc_corr_rm_ol', '--gc_corr_rm_ol', action='store_true',
help="use only rd bins between 75% and 125% of mean value for gc correction curve")
help="use only rd bins between 75%% and 125%% of mean value for gc correction curve")
parser.add_argument('-rg', '--reference_genome', type=str, help="Manually set reference genome", default=None)
parser.add_argument('-sample', '--vcf_sample', type=str, help="Sample name in vcf file", default="")
parser.add_argument('-conf', '--reference_genomes_conf', type=str, help="Configuration with reference genomes",
Expand Down
4 changes: 2 additions & 2 deletions cnvpytor/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,14 +497,14 @@ def pileup_chromosome(x):
c, l, snpc, bam_path, reference_filename, pos, ref, alt = x
_logger.info("Pileup chromosome %s with length %d" % (c, l))
bamf = Bam(bam_path, reference_filename=reference_filename, init_log=False)
return bamf.pileup(c, pos[snpc], ref[snpc], alt[snpc])
return bamf.pileup(c, pos, ref, alt)

def _pileup_bam(self, bamfile, chroms, pos, ref, alt, nref, nalt, reference_filename):
_logger.info("Calculating pileup from bam file '%s'." % bamfile)
bamf = Bam(bamfile, reference_filename=reference_filename)

chrname, chrlen = bamf.get_chr_len()
chr_len = [(c, l, self.io.snp_chromosome_name(c), bamfile, reference_filename, pos, ref, alt) for (c, l) in
chr_len = [(c, l, self.io.snp_chromosome_name(c), bamfile, reference_filename, pos[self.io.snp_chromosome_name(c)], ref[self.io.snp_chromosome_name(c)], alt[self.io.snp_chromosome_name(c)]) for (c, l) in
zip(chrname, chrlen) if self.io.snp_chromosome_name(c) in chroms]

if self.max_cores == 1:
Expand Down

0 comments on commit b5ae62c

Please sign in to comment.