-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from nf-core/reports
Reports
- Loading branch information
Showing
29 changed files
with
610 additions
and
143 deletions.
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
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 |
---|---|---|
|
@@ -10,3 +10,4 @@ null/ | |
outdir/ | ||
.ipynb_checkpoints/ | ||
test.ipynb | ||
*reports.tsv |
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
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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
id,fasta,reference,structures,template | ||
seatoxin-ref,test-dataset/setoxin-ref.fa,test-dataset/setoxin.ref,https://raw.githubusercontent.com/nf-core/test-datasets/multiplesequencealign/testdata/structures/seatoxin-ref.tar.gz, | ||
toxin-ref,test-dataset/toxin-ref.fa,test-dataset/toxin.ref,, |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
tree,args_tree,aligner,args_aligner | ||
FAMSA,"-gt upgma -parttree",FAMSA,"" | ||
"","",MAFFT,"--anysymbol --quiet --dpparttree" | ||
|
||
FAMSA,-gt upgma -parttree,FAMSA, | ||
,,MAFFT,--anysymbol --quiet --dpparttree | ||
,,MUSCLE5, | ||
,,LEARNMSA, | ||
,,KALIGN, | ||
CLUSTALO,,CLUSTALO, | ||
,,TCOFFEE, | ||
,,3DCOFFEE,-method TMalign_pair | ||
,,REGRESSIVE,-reg_nseq 3 |
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/env python | ||
|
||
import csv | ||
import argparse | ||
import sys | ||
import pandas as pd | ||
|
||
|
||
def prep_table(input, output): | ||
df = pd.read_csv(input, sep=",") | ||
# make nan values "null" | ||
df = df.rename(columns={"id": "fasta"}) | ||
# run id as first column | ||
# replace in all rows the word null with default | ||
|
||
# add column with index as integer | ||
df["id"] = df.index + 1 | ||
# make it int | ||
df["id"] = df["id"].astype(int) | ||
# make it the first column | ||
cols = df.columns.tolist() | ||
cols = cols[-1:] + cols[:-1] | ||
df = df[cols] | ||
df.to_csv(output, index=False) | ||
|
||
|
||
def parse_args(argv=None): | ||
"""Define and immediately parse command line arguments.""" | ||
parser = argparse.ArgumentParser(description="--") | ||
parser.add_argument( | ||
"-i", | ||
) | ||
|
||
parser.add_argument( | ||
"-o", | ||
) | ||
return parser.parse_args(argv) | ||
|
||
|
||
def main(argv=None): | ||
args = parse_args(argv) | ||
prep_table(args.i, args.o) | ||
|
||
|
||
if __name__ == "__main__": | ||
sys.exit(main()) |
Oops, something went wrong.