Hi @Mehrbod_Estaki, thanks for your reply. Could you please give me some feedback here?
- I filtered and input the table as mention before.
qiime feature-table filter-features
--i-table table.qza #feature-table-filtered.qza
--m-metadata-file taxonomy.qza
--p-where "Taxon NOT LIKE '%Cyanobacteria%'"
--p-exclude-ids
--o-filtered-table feature-table-sans-cyanobacteria.qza
##(Concept confusion; Feature tables to change for further analysis; table.gza or full.table?
qiime feature-table filter-seqs
--i-data rep-seqs.qza
--m-metadata-file taxonomy.qza
--p-where "Taxon NOT LIKE '%Cyanobacteria%'"
--p-exclude-ids
--o-filtered-data rep-seq-no-cyanobacteria.qza
qiime feature-table tabulate-seqs
--i-data rep-seq-no-cyanobacteria.qza
--o-visualization rep-seq-no-cyanobacteria.qzv
#Saved Visualization to: rep-seq-no-cyanobacteria.qzv
-
After this, in the downstream analysis, can I again use the sample_metada file?
-
As I want to obtain the unique seqs that does not contain Cyanobact and run again Core-diversity and taxonomy assignment.
I have written the next commands, but the unique seqs are decreasing too much 1000 to 20, which I don't think it makes sense, How can I control this?
qiime feature-table summarize
--i-table feature-table-sans-cyanobacteria.qza
--m-sample-metadata-file '/media/pedro/Shared/2792_data_training/sample_metadata.csv'
--o-visualization feature-table-sans-cyanobacteria.qzv
#Saved Visualization to: feature-table-sans-cyanobacteria.qzv
-
Generate a tree for phylogenetic diversity analyses, use sepp
qiime fragment-insertion sepp
--i-representative-sequences rep-seq-no-cyanobacteria.qza
--o-tree insertion-tree-noCyano.qza
--o-placements insertion-placements-noCyano.qza
#Filter our feature table with our fragments that are featured in the tree (table.qza) and those without (removed-table.qza)
qiime fragment-insertion filter-features
--i-table feature-table-sans-cyanobacteria.qza
--i-tree insertion-tree-noCyano.qza
--o-filtered-table table-sans-cyanobacteria.qza
--o-removed-table removed-table-sans-cyanobacteria.qza
-
Filter our feature table with our fragments that are featured in the tree (table.qza) and those without (removed-table.qza)
qiime fragment-insertion filter-features
--i-table feature-table-sans-cyanobacteria.qza
--i-tree insertion-tree-noCyano.qza
--o-filtered-table table-sans-cyanobacteria.qza
--o-removed-table removed-table-sans-cyanobacteria.qza
qiime feature-table summarize
--i-table feature-table-sans-cyanobacteria.qza
--m-sample-metadata-file '/media/pedro/Shared/2792_data_training sample_metadata.csv'
--o-visualization table-sans-cyanobacteria.qzv
qiime tools view table-sans-cyanobacteria.qzv
qiime feature-table summarize ######did not pass
-i-table removed-table-sans-cyanobacteria.qza
--m-sample-metadata-file '/media/pedro/Shared/2792_data_training/sample_metadata.csv'
--o-visualization removed-table-sans-cyanobacteria.qzv
Saved Visualization to:
qiime tools view removed-table-sans-cyanobacteria.qzv
There was an issue with merging QIIME 2 Metadata:
Cannot merge metadata with overlapping columns. The following columns overlap: 'anonymized_name', 'sample_country_origin', 'sample_fermentation_location', 'sample_continent', 'dna_extracted', 'sample_type', 'description', 'scientific_name', 'collection_year', 'predominant_genetics', '16S _V3V4_r1', '16S _V3V4_r2', '2RPOBAP_289-308F_r1', '2RPOBAP_622-644R_r2', '3DNAKAP_275-294F_r1', '3DNAKAP_617-636R_r2', '1GROELAP _71-92F_r1', '1GROELAP_377-398R_r2', '3GROELLF_231-252F_r1', '3GROELLF_536-557R_r2', 'Index N7_ID', 'Index_N7', 'Index_N5_ID', 'Index_N5', 'well_id', 'barcodes'
-
CORE DIVERSITY WITHOUT CYANO
qiime diversity core-metrics-phylogenetic
--i-phylogeny insertion-tree-noCyano.qza
--i-table table-sans-cyanobacteria.qza
--m-metadata-file '/media/pedro/Shared/2792_data_training/sample_metadata.csv'
--p-sampling-depth 1000 \
--output-dir core-metrics-results-nocyano
-
LPHA diversity
qiime diversity alpha-group-significance
--i-alpha-diversity core-metrics-results-nocyano/faith_pd_vector.qza
--m-metadata-file '/media/pedro/Shared/2792_data_training/sample_metadata.csv'
--o-visualization core-metrics-results-nocyano/faith_pd_group-significance.qzv
qiime diversity alpha-group-significance
--i-alpha-diversity core-metrics-results-nocyano/evenness_vector.qza
--m-metadata-file '/media/pedro/Shared/2792_data_training/sample_metadata.csv'
--o-visualization core-metrics-results-nocyano/evenness-group-significance.qzv
Plugin error from diversity:
float division by zero
- In the end by reviewing core-metrics-results-nocyano/faith_pd_group-significance.
The following pairwise group comparisons have been omitted because the Kruskal-Wallis test could not be completed. This can occur if the two groups being compared each have a sample size (n) of 1 and contain the same single value.
Note: I was following Moving picture, FMT, Filtering data tutorial.
Could you please guide throught is.
Many thanks again.
Pedro