Skip to content

Commit

Permalink
some minor updategit status
Browse files Browse the repository at this point in the history
  • Loading branch information
fengcong3 committed Jul 4, 2022
1 parent de5af4c commit 25c4ccb
Show file tree
Hide file tree
Showing 5 changed files with 562 additions and 9 deletions.
8 changes: 4 additions & 4 deletions HAPPE/HAPPE.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ def main1():
if region:
ret = os.system("""
#eg. bcftools view -r chr1A:1-100 -S sample.list test.vcf.gz | bgzip -c > out.vcf.gz
%s view %s %s %s | %s -c > %s.vcf.gz
%s view %s %s %s %s | %s -c > %s.vcf.gz
%s
%s
%s
"""%( bcftools , "-r %s"%(region) if region else "", "-S %s"%(keep) if keep else "" , gzvcf ,
"""%( bcftools , "-r %s"%(region) if region else "", "-S %s"%(keep) if keep else "" , "-c 1:alt1" ,gzvcf ,
bgzip, output_prefix,
"%s %s %s.vcf.gz | %s -c > %s.vcf.gz.bak && mv %s.vcf.gz.bak %s.vcf.gz" % (
python3 ,filter_func_py , output_prefix , bgzip , output_prefix , output_prefix , output_prefix
Expand All @@ -208,7 +208,7 @@ def main1():

"%s %s %s.vcf.gz | %s -c > %s.vcf.gz.bak && mv %s.vcf.gz.bak %s.vcf.gz" % (
python3 ,filter_noncod_py , output_prefix , bgzip , output_prefix , output_prefix , output_prefix
) if noncoding else "",
) if noncoding else ""
)
)

Expand Down Expand Up @@ -383,7 +383,7 @@ def main1():
os.remove("%s.maxd_order"%(output_prefix))
os.remove("%s.newick"%(output_prefix))
os.remove("%s.heat"%(output_prefix))
os.remove("%s.cluster"%(output_prefix))
# os.remove("%s.cluster"%(output_prefix))
os.remove("%s.heat.start"%(output_prefix))
os.remove("%s.tree.xlsx"%(output_prefix))
os.remove("%s.inf.xlsx"%(output_prefix))
Expand Down
Loading

0 comments on commit 25c4ccb

Please sign in to comment.