Here is my code in case of use for anyone in the future. @Keegan-Evans let me know if you see any red flags. It was quick so skipped several steps. Then took over into R to make a quick figure. I appreciate the support. Did the trick.
‘Old data’ from EMP set-up
qiime tools import
–type EMPPairedEndSequences
–input-path folder path
–output-path emp-paired-end-sequences.qza
qiime demux emp-paired
–m-barcodes-file mapping file path
–m-barcodes-column BarcodeSequence
–i-seqs qza sequence file
–o-per-sample-sequences demux \
Use only forward reads since we have different reverse primers .
Looks like forward primer removed in demux code, looking at rep-seqs.qza after code finishes
qiime dada2 denoise-single --i-demultiplexed-seqs demux.qza --p-trim-left 0 --p-trunc-len 250 --o-table table.qza --o-representative-sequences rep-seqs.qza --o-denoising-stats denoising-stats.qza
qiime tools export --input-path rep-seqs.qza --output-path rep-seqs-PGF4
New data on from in-house protocol, demultiplexed on Miseq
In order to import them into qiime without error this is the easiest way: make them Casava formatted.
Scroll down in link below to find info about this style of sequences
Casava 1.8 demultiplexed fastq
https://docs.qiime2.org/2018.6/tutorials/importing/#sequence-data-with-sequence-quality-information
But, the way you get them off Miseq in per-sample folders. Move into the main folder above per-sample folder and move all files within each subfolder into one main folder - this is casava format (all forward and reverse reads for all samples in one folder.
cp -v *_L001*/* ~/Documents/Reads
then remove those folders
rm -r *_L001*/
Want to import only forward reads, make sure gzipped. Moved only forward subset manually into this folder ~/Documents/Reads/ForwardOnlySubset
gzip ForwardOnlySubset/*
qiime tools import
–type ‘SampleData[SequencesWithQuality]’
–input-path ForwardOnlySubset
–input-format CasavaOneEightSingleLanePerSampleDirFmt
–output-path demux-single-end.qza
Since this protocol doesn’t remove forward primer in demux (like EMP), we set it so total length for both EMP and this protocol is 250 bp. Here 269 - 19 (forward primer bp length)
qiime dada2 denoise-single --i-demultiplexed-seqs demux-single-end.qza --p-trim-left 19 --p-trunc-len 269 --o-table table2.qza --o-representative-sequences rep-seqs2.qza --o-denoising-stats denoising-stats2.qza
qiime tools export --input-path rep-seqs2.qza --output-path rep-seqs-AmbXeno
qiime feature-table merge --i-tables table.qza --i-tables table2.qza --o-merged-table table-merged.qza
Just taking table out, don’t need to know taxonomy for this prelim figure
qiime tools export --input-path table-merged.qza --output-path exported-feature-table
biom convert -i feature-table.biom -o table.from_biom.txt --to-tsv