Browse Source

ajout etape clustering

nicolas-zimmermann 4 years ago
parent
commit
8165ca41a8
1 changed files with 11 additions and 6 deletions
  1. 11 6
      16S_workflow.sh

+ 11 - 6
16S_workflow.sh View File

@@ -37,13 +37,18 @@ sed -i 's/ //g' fasta/amplicon.fasta
37 37
 # CREATE OTU
38 38
 # DEDUPLICATION
39 39
 mkdir otu
40
-soft/vsearch --derep_fulllength fasta/amplicon.fasta --output otu/fulllength_otu.fasta
41
-soft/vsearch --derep_prefix fasta/amplicon.fasta --output otu/prefix_otu.fasta
40
+soft/vsearch --derep_fulllength fasta/amplicon.fasta --output fasta/fulllength.fasta
41
+soft/vsearch --derep_prefix fasta/amplicon.fasta --output fasta/prefix.fasta
42 42
 
43 43
 # REMOVING SINGLETON
44
-soft/vsearch --derep_fulllength fasta/amplicon.fasta --output otu/fulllength_min10_otu.fasta --minuniquesize 10
45
-soft/vsearch --derep_prefix fasta/amplicon.fasta --output otu/prefix_min10_otu.fasta --minuniquesize 10
44
+soft/vsearch --derep_prefix fasta/amplicon.fasta --output fasta/prefix_min10.fasta --minuniquesize 10
46 45
 
47 46
 # REMOVING CHIMERAS
48
-soft/vsearch --uchime_denovo otu/prefix_min10_otu.fasta --nonchimeras otu/prefix_min10_nochim_otu.fasta
49
-soft/vsearch --uchime_denovo otu/fulllength_min10_otu.fasta --nonchimeras otu/fulllength_min10_nochim_otu.fasta
47
+soft/vsearch --uchime_denovo fasta/prefix.fasta --nonchimeras fasta/prefix_nochim.fasta
48
+
49
+# CLUSTERING
50
+otu=">OTU_"
51
+vsearch --cluster_fast fasta/prefix_nochim.fasta --id 0.97 --centroids otu/centroids.fasta --relabel $otu
52
+
53
+# ABONDANCE
54
+