-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly parse presets when using a samplesheet
- Loading branch information
1 parent
f2acedf
commit 2ca2149
Showing
1 changed file
with
3 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
import snakemake | ||
import yaml | ||
import pandas as pd | ||
|
||
from ViroConstrictor import __version__ | ||
from ViroConstrictor.functions import color | ||
|
@@ -62,10 +63,11 @@ def main(): | |
|
||
flags, sampleinfo, samples_df = ValidArgs(sys.argv[1:]) | ||
samples_df = samples_df.reset_index(drop=False).rename(columns={"index": "SAMPLE"}) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
florianzwagemaker
Author
Contributor
|
||
sampleinfo_df = pd.DataFrame.from_dict(sampleinfo, orient="index").reset_index(drop=False).rename(columns={"index": "SAMPLE"}) | ||
|
||
preset_fallback_warnings = [] | ||
preset_score_warnings = [] | ||
for s in samples_df.itertuples(): | ||
for s in sampleinfo_df.itertuples(): | ||
sample, preset, score, input_target = ( | ||
s.SAMPLE, | ||
s.PRESET, | ||
|
It seems that this dataframe is not used anymore. Is that correct?