You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A test set can be found in the test_data directory.
61
+
A test set can be found in the maginator/test_data directory.
62
62
1. Download the 3 samples used for the test at SRA: https://www.ncbi.nlm.nih.gov/sra?LinkName=bioproject_sra_all&from_uid=715601 with the ID's dfc99c_A, f9d84e_A and 221641_A
63
-
2. Change the paths to the read-files in reads.csv
The eggNOG output can be merged with clusters.tsv and further processed to obtain functional annotations of the MAG, cluster or sample levels with the following command:
103
+
```sh
104
+
(echo -e '#sample\tMAG_cluster\tMAG\tfunction'; join -1 1 -2 1 <(awk '{print $2 "\t" $1}' clusters.tsv | sort)<(tail -n +6 annotations.tsv | head -n -3 | cut -f1,15 | grep -v '\-$'| sed 's/_[[:digit:]]\+\t/\t/'| sed 's/,/\n/g'| perl -lane '{$q = $F[0] if $#F > 0; unshift(@F, $q) if $#F == 0}; print "$F[0]\t$F[1]"'| sed 's/\tko:/\t/'| sort)| awk '{print $2 "\t" $2 "\t" $3}'| sed 's/_/\t/'| sort -k1,1 -k2,2n) > MAGfunctions.tsv
105
+
```
106
+
In this case the KEGG ortholog column 15 was picked from the eggNOG-mapper output. But by cutting e.g. column number 13, one would obtain GO terms instead. Refer to the header of the eggNOG-mapper output for other available functional annotations e.g. KEGG pathways, Pfam, CAZy, COGs, etc.
107
+
108
+
99
109
## MAGinator workflow
100
110
101
111
This is what MAGinator does with your input (if you want to see all parameters run maginator --help):
0 commit comments