Skip to content

Commit

Permalink
Merge pull request #90 from RIVM-bioinformatics/dev
Browse files Browse the repository at this point in the history
Update AmpliGone & resolve pandas FutureWarning
  • Loading branch information
florianzwagemaker authored Mar 22, 2024
2 parents 9109a5c + 18e4ffb commit 7578111
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ViroConstrictor/workflow/envs/Clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ channels:
- nodefaults
dependencies:
- python>=3.8
- ampligone==1.2.1
- ampligone==1.3.0
- pandas>=1.3
- minimap2==2.24
- mappy==2.24
Expand Down
4 changes: 2 additions & 2 deletions ViroConstrictor/workflow/envs/Consensus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ channels:
- intel
- nodefaults
dependencies:
- python=3.7
- python=3.8
- libffi==3.3
- pandas==1.3.5
- pysam=0.15
- pysam=0.16
- pysamstats==1.1.2
- biopython==1.79
- parmap==1.5.3
Expand Down
2 changes: 1 addition & 1 deletion ViroConstrictor/workflow/scripts/boc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

with open(output, "w") as f:
f.write(
f"{samplename}\t{100-(int(df[df < 1 ].count())/a)*100}\t{100-(int(df[df < 5 ].count())/a)*100}\t{100-(int(df[df < 10 ].count())/a)*100}\t{100-(int(df[df < 50 ].count())/a)*100}\t{100-(int(df[df < 100 ].count())/a)*100}\n"
f"{samplename}\t{100-(int(df[df < 1].count().iloc[0])/a)*100}\t{100-(int(df[df < 5].count().iloc[0])/a)*100}\t{100-(int(df[df < 10].count().iloc[0])/a)*100}\t{100-(int(df[df < 50].count().iloc[0])/a)*100}\t{100-(int(df[df < 100].count().iloc[0])/a)*100}\n"
)

0 comments on commit 7578111

Please sign in to comment.