Skip to content

Commit

Permalink
refactor: swap argument parser and configuration reader for compatibi…
Browse files Browse the repository at this point in the history
…lity with conda-build recipe
  • Loading branch information
florianzwagemaker committed Mar 2, 2023
1 parent 712983d commit 2266afe
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ViroConstrictor/ViroConstrictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,16 @@ def main():
--> Run snakemake with appropriate settings
"""

##> Check the default userprofile, make it if it doesn't exist
conf = ReadConfig(os.path.expanduser("~/.ViroConstrictor_defaultprofile.ini"))

flags, sampleinfo, samples_df = ValidArgs(sys.argv[1:])
samples_df = samples_df.reset_index(drop=False).rename(columns={"index": "SAMPLE"})
sampleinfo_df = pd.DataFrame.from_dict(sampleinfo, orient="index").reset_index(drop=False).rename(columns={"index": "SAMPLE"})
sampleinfo_df = (
pd.DataFrame.from_dict(sampleinfo, orient="index")
.reset_index(drop=False)
.rename(columns={"index": "SAMPLE"})
)

##> Check the default userprofile, make it if it doesn't exist
conf = ReadConfig(os.path.expanduser("~/.ViroConstrictor_defaultprofile.ini"))

preset_fallback_warnings = []
preset_score_warnings = []
Expand Down

0 comments on commit 2266afe

Please sign in to comment.