Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 7 new columns ({'sample_accession', 'antibiotic_concentration', 'plant_species', 'replicate', 'treatment_label', 'ena_title', 'concentration_mg_kg'}) and 2 missing columns ({'reverse-absolute-filepath', 'forward-absolute-filepath'}).

This happened while the csv dataset builder was generating data using

hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis/01_metadata/16S_sample_metadata.tsv (at revision fcecf9c3f21b5c9aeaad03af708777c3ad840de0), ['hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis@fcecf9c3f21b5c9aeaad03af708777c3ad840de0/01_metadata/16S_manifest.tsv', 'hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis@fcecf9c3f21b5c9aeaad03af708777c3ad840de0/01_metadata/16S_sample_metadata.tsv', 'hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis@fcecf9c3f21b5c9aeaad03af708777c3ad840de0/01_metadata/ITS_manifest.tsv', 'hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis@fcecf9c3f21b5c9aeaad03af708777c3ad840de0/01_metadata/ITS_sample_metadata.tsv', 'hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis@fcecf9c3f21b5c9aeaad03af708777c3ad840de0/PRJEB95045_runinfo.tsv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1837, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              sample-id: string
              sample_accession: string
              ena_title: string
              antibiotic_concentration: string
              concentration_mg_kg: string
              plant_species: string
              replicate: string
              treatment_label: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1306
              to
              {'sample-id': Value('string'), 'forward-absolute-filepath': Value('string'), 'reverse-absolute-filepath': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1839, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 7 new columns ({'sample_accession', 'antibiotic_concentration', 'plant_species', 'replicate', 'treatment_label', 'ena_title', 'concentration_mg_kg'}) and 2 missing columns ({'reverse-absolute-filepath', 'forward-absolute-filepath'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis/01_metadata/16S_sample_metadata.tsv (at revision fcecf9c3f21b5c9aeaad03af708777c3ad840de0), ['hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis@fcecf9c3f21b5c9aeaad03af708777c3ad840de0/01_metadata/16S_manifest.tsv', 'hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis@fcecf9c3f21b5c9aeaad03af708777c3ad840de0/01_metadata/16S_sample_metadata.tsv', 'hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis@fcecf9c3f21b5c9aeaad03af708777c3ad840de0/01_metadata/ITS_manifest.tsv', 'hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis@fcecf9c3f21b5c9aeaad03af708777c3ad840de0/01_metadata/ITS_sample_metadata.tsv', 'hf://datasets/QasimHussain/qiime2_antibiotic_microbiome_analysis@fcecf9c3f21b5c9aeaad03af708777c3ad840de0/PRJEB95045_runinfo.tsv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

sample-id
string
forward-absolute-filepath
string
reverse-absolute-filepath
string
SB_16S_10_S58
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_10_S58_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_10_S58_2.fastq.gz
SB_16S_11_S38
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_11_S38_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_11_S38_2.fastq.gz
SB_16S_12_S96
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_12_S96_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_12_S96_2.fastq.gz
SB_16S_14_S178
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_14_S178_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_14_S178_2.fastq.gz
SB_16S_15_S76
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_15_S76_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_15_S76_2.fastq.gz
SB_16S_16_S191
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_16_S191_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_16_S191_2.fastq.gz
SB_16S_17_S164
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_17_S164_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_17_S164_2.fastq.gz
SB_16S_18_S208
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_18_S208_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_18_S208_2.fastq.gz
SB_16S_19_S71
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_19_S71_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_19_S71_2.fastq.gz
SB_16S_1_S172
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_1_S172_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_1_S172_2.fastq.gz
SB_16S_20_S47
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_20_S47_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_20_S47_2.fastq.gz
SB_16S_21_S153
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_21_S153_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_21_S153_2.fastq.gz
SB_16S_22_S63
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_22_S63_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_22_S63_2.fastq.gz
SB_16S_23_S39
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_23_S39_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_23_S39_2.fastq.gz
SB_16S_24_S145
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_24_S145_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_24_S145_2.fastq.gz
SB_16S_25_S109
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_25_S109_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_25_S109_2.fastq.gz
SB_16S_26_S107
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_26_S107_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_26_S107_2.fastq.gz
SB_16S_27_S118
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_27_S118_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_27_S118_2.fastq.gz
SB_16S_28_S197
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_28_S197_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_28_S197_2.fastq.gz
SB_16S_29_S187
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_29_S187_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_29_S187_2.fastq.gz
SB_16S_2_S74
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_2_S74_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_2_S74_2.fastq.gz
SB_16S_30_S177
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_30_S177_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_30_S177_2.fastq.gz
SB_16S_31_S183
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_31_S183_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_31_S183_2.fastq.gz
SB_16S_32_S169
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_32_S169_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_32_S169_2.fastq.gz
SB_16S_34_S221
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_34_S221_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_34_S221_2.fastq.gz
SB_16S_35_S66
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_35_S66_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_35_S66_2.fastq.gz
SB_16S_36_S50
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_36_S50_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_36_S50_2.fastq.gz
SB_16S_37_S203
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_37_S203_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_37_S203_2.fastq.gz
SB_16S_38_S53
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_38_S53_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_38_S53_2.fastq.gz
SB_16S_39_S137
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_39_S137_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_39_S137_2.fastq.gz
SB_16S_3_S89
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_3_S89_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_3_S89_2.fastq.gz
SB_16S_41_S115
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_41_S115_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_41_S115_2.fastq.gz
SB_16S_42_S148
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_42_S148_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_42_S148_2.fastq.gz
SB_16S_43_S119
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_43_S119_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_43_S119_2.fastq.gz
SB_16S_44_S67
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_44_S67_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_44_S67_2.fastq.gz
SB_16S_45_S180
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_45_S180_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_45_S180_2.fastq.gz
SB_16S_46_S139
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_46_S139_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_46_S139_2.fastq.gz
SB_16S_47_S105
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_47_S105_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_47_S105_2.fastq.gz
SB_16S_48_S170
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_48_S170_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_48_S170_2.fastq.gz
SB_16S_49_S136
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_49_S136_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_49_S136_2.fastq.gz
SB_16S_4_S93
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_4_S93_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_4_S93_2.fastq.gz
SB_16S_50_S42
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_50_S42_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_50_S42_2.fastq.gz
SB_16S_51_S65
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_51_S65_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_51_S65_2.fastq.gz
SB_16S_5_S54
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_5_S54_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_5_S54_2.fastq.gz
SB_16S_6_S130
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_6_S130_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_6_S130_2.fastq.gz
SB_16S_7_S108
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_7_S108_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_7_S108_2.fastq.gz
SB_16S_8_S218
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_8_S218_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_8_S218_2.fastq.gz
SB_16S_9_S79
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_9_S79_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/16S_raw/SB_16S_9_S79_2.fastq.gz
#q2:types
null
null
SB_16S_1_S172
null
null
SB_16S_2_S74
null
null
SB_16S_3_S89
null
null
SB_16S_4_S93
null
null
SB_16S_5_S54
null
null
SB_16S_6_S130
null
null
SB_16S_7_S108
null
null
SB_16S_8_S218
null
null
SB_16S_9_S79
null
null
SB_16S_10_S58
null
null
SB_16S_11_S38
null
null
SB_16S_12_S96
null
null
SB_16S_14_S178
null
null
SB_16S_15_S76
null
null
SB_16S_16_S191
null
null
SB_16S_17_S164
null
null
SB_16S_18_S208
null
null
SB_16S_19_S71
null
null
SB_16S_20_S47
null
null
SB_16S_21_S153
null
null
SB_16S_22_S63
null
null
SB_16S_23_S39
null
null
SB_16S_24_S145
null
null
SB_16S_25_S109
null
null
SB_16S_26_S107
null
null
SB_16S_27_S118
null
null
SB_16S_28_S197
null
null
SB_16S_29_S187
null
null
SB_16S_30_S177
null
null
SB_16S_31_S183
null
null
SB_16S_32_S169
null
null
SB_16S_34_S221
null
null
SB_16S_35_S66
null
null
SB_16S_36_S50
null
null
SB_16S_37_S203
null
null
SB_16S_38_S53
null
null
SB_16S_39_S137
null
null
SB_16S_41_S115
null
null
SB_16S_42_S148
null
null
SB_16S_43_S119
null
null
SB_16S_44_S67
null
null
SB_16S_45_S180
null
null
SB_16S_46_S139
null
null
SB_16S_47_S105
null
null
SB_16S_48_S170
null
null
SB_16S_49_S136
null
null
SB_16S_50_S42
null
null
SB_16S_51_S65
null
null
SB_ITS_10_S227
/home/qasim/qiime2_antibiotic_microbiome_analysis/ITS_raw/SB_ITS_10_S227_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/ITS_raw/SB_ITS_10_S227_2.fastq.gz
SB_ITS_11_S129
/home/qasim/qiime2_antibiotic_microbiome_analysis/ITS_raw/SB_ITS_11_S129_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/ITS_raw/SB_ITS_11_S129_2.fastq.gz
SB_ITS_12_S159
/home/qasim/qiime2_antibiotic_microbiome_analysis/ITS_raw/SB_ITS_12_S159_1.fastq.gz
/home/qasim/qiime2_antibiotic_microbiome_analysis/ITS_raw/SB_ITS_12_S159_2.fastq.gz
End of preview.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Soil Microbiome Responses to Antibiotic Contamination: A Dual-Marker Amplicon Analysis

Python 3.9+ Open in Hugging Face License: MIT

Overview

This repository contains a fully reproducible computational pipeline for the analysis of soil microbial community responses to escalating antibiotic concentrations. The study employs a dual-marker amplicon sequencing approach, simultaneously profiling bacterial communities via the 16S rRNA gene (V3-V4 region) and fungal communities via the internal transcribed spacer region (ITS2), to characterize the taxonomic and ecological consequences of antibiotic contamination in agricultural soils planted with two crop species.

All raw sequencing data are publicly available from the European Nucleotide Archive under BioProject accession PRJEB95045.


Study Design

The experimental framework follows a fully balanced 4 x 2 factorial design comprising 48 biological samples per marker gene (96 libraries total). Soil samples were collected from pots planted with Spinacia oleracea (spinach) or Raphanus sativus (radish) and amended with a mixture of five antibiotics at four concentration levels. Six biological replicates were maintained per treatment group.

Factor Levels
Plant species Spinacia oleracea (spinach), Raphanus sativus (radish)
Antibiotic concentration 0 (c0), 0.1 (c0.1), 1.0 (c1), 10.0 (c10) mg/kg soil dw
Biological replicates 6 per treatment combination
Sequencing platform Illumina NextSeq 2000, 2 x 301 bp paired-end

Analytical Pipeline

The complete analytical workflow was implemented in QIIME 2, with computationally intensive steps executed via standalone shell scripts to manage memory constraints. The pipeline is organized into two parallel tracks, one for each marker gene, each documented in a dedicated Jupyter notebook and supported by modular execution scripts.

16S rRNA Gene (Bacterial Profiling)

  1. Data Importation and Quality Assessment: Raw paired-end FASTQ files were imported using a fastq manifest and profiled for per-base sequence quality to empirically determine truncation parameters.
  2. Amplicon Sequence Variant (ASV) Inference: DADA2 was employed for denoising with the following empirically optimized parameters: forward reads truncated at 280 bp, reverse reads at 240 bp, with primer sequences removed by positional trimming (17 bp forward, 21 bp reverse). These parameters yield an effective overlap of approximately 22 bp for the V3-V4 insert, exceeding the 12 bp algorithmic minimum. Thread count was restricted to 2 to prevent out-of-memory failures on systems with 16 GB RAM.
  3. Taxonomic Classification: Taxonomic assignments were performed using a pre-trained Naive Bayes classifier against the SILVA 138.2 SSU NR99 reference database. Region-specific reference sequences (V3-V4, primers 341F/806R) were extracted via the RESCRIPt plugin to maximize classification accuracy.
  4. Phylogenetic Reconstruction: A prevalence filter (minimum 2 samples) was applied to remove transient singleton ASVs prior to multiple sequence alignment (MAFFT) and approximate maximum-likelihood tree inference (FastTree). This yielded a midpoint-rooted phylogenetic tree suitable for computing phylogenetically informed diversity metrics.
  5. Diversity and Statistical Analysis: Following contaminant excision (mitochondria and chloroplast sequences), core diversity metrics were computed at a rarefaction depth of 100,000 reads, retaining all 48 samples. Alpha diversity was assessed using Shannon entropy, Pielou evenness, observed features, and Faith phylogenetic diversity, with group significance evaluated via Kruskal-Wallis tests. Beta diversity was quantified using weighted and unweighted UniFrac, Bray-Curtis dissimilarity, and Jaccard distance, with treatment effects tested via PERMANOVA (999 permutations). Differential abundance analysis was performed at the genus level using ANCOM-BC.

ITS2 (Fungal Profiling)

  1. Primer Removal: Unlike the 16S pipeline, ITS primer sequences (ITS3ngs/ITS4ngs; Tedersoo et al., 2014) were removed using Cutadapt's adaptive alignment algorithm rather than positional trimming, as the conserved flanking regions exhibit length variation. The --p-discard-untrimmed flag ensured that only reads containing a valid ITS primer pair were retained, effectively filtering non-target reads from the multiplexed library.
  2. DADA2 Denoising: No fixed-length truncation was applied (--p-trunc-len-f 0, --p-trunc-len-r 0) to preserve the natural length heterogeneity of the ITS2 region (~200 to 450 bp). Quality filtering relied exclusively on the maximum expected errors threshold (2.0).
  3. Taxonomic Classification: ITS sequences were classified against the UNITE 10.0 reference database (release 2024-04-04, dynamic species hypothesis clustering, all eukaryotes) using the VSEARCH consensus taxonomy method. This alignment-based approach was selected over the Naive Bayes classifier for its reduced memory footprint while maintaining comparable classification accuracy.
  4. Non-Phylogenetic Diversity Analysis: Because the ITS region cannot be meaningfully aligned across distantly related fungal taxa, all diversity analyses were restricted to non-phylogenetic metrics (Bray-Curtis, Jaccard, Shannon, observed features, Pielou evenness). A rarefaction depth of 4,000 reads was selected, retaining 44 of 48 samples (92%). Alpha and beta group significance testing and ANCOM-BC differential abundance analysis were performed identically to the 16S pipeline.

Repository Structure

qiime2_antibiotic_microbiome_analysis/
|-- README.md                         # This document
|-- license                           # MIT License
|-- .gitignore                        # Version control exclusion rules
|-- installation.sh                   # QIIME 2 environment setup script
|-- environment.yml                   # Conda environment specification
|-- data_download.ipynb               # Notebook: raw data retrieval from ENA
|-- PRJEB95045_runinfo.tsv            # ENA run accession metadata (96 runs)
|-- 01_metadata/                      # Sample metadata and manifests
|   |-- 16S_sample_metadata.tsv       # 16S factorial design metadata
|   |-- 16S_manifest.tsv              # 16S QIIME 2 import manifest
|   |-- ITS_sample_metadata.tsv       # ITS factorial design metadata
|   |-- ITS_manifest.tsv              # ITS QIIME 2 import manifest
|-- 16S_raw/                          # Raw 16S paired-end FASTQ files (48 samples)
|   |-- SB_16S_*_1.fastq.gz           # [IGNORED: re-download via data_download.ipynb]
|   |-- SB_16S_*_2.fastq.gz
|-- ITS_raw/                          # Raw ITS paired-end FASTQ files (48 samples)
|   |-- SB_ITS_*_1.fastq.gz           # [IGNORED: re-download via data_download.ipynb]
|   |-- SB_ITS_*_2.fastq.gz
|-- 02_interim_artifacts/             # QIIME 2 intermediate processing artifacts
|   |-- 16S/                          # DADA2 outputs, filtered tables, summaries
|   |-- ITS/                          # DADA2 outputs, trimmed demux, summaries
|-- 03_phylogeny_and_taxonomy/        # Reference databases, trees, taxonomic assignments
|   |-- 16S/                          # SILVA 138.2, phylogenetic tree, 16S taxonomy
|   |   |-- tree_export/              # Exported Newick tree file
|   |-- ITS/                          # UNITE 10.0, ITS taxonomy, VSEARCH results
|-- 04_diversity_and_stats/           # Diversity metrics and statistical test results
|   |-- 16S/                          # Core metrics, alpha/beta significance, ANCOM-BC
|   |   |-- 16S-core-metrics/         # Rarefied table, distance matrices, PCoA
|   |-- ITS/                          # Core metrics, alpha/beta significance, ANCOM-BC
|   |   |-- ITS-core-metrics/         # Rarefied table, distance matrices, PCoA
|-- notebooks/                        # Jupyter notebook documentation
|   |-- 16S_pipeline/                 # 16S analysis notebook and local artifacts
|   |-- ITS_pipeline/                 # ITS analysis notebook
|-- run_dada2_16s.sh                  # Standalone DADA2 denoising script
|-- run_phylogeny_16s.sh              # Standalone phylogeny construction script
|-- run_taxonomy_16s.sh               # Standalone taxonomic classification script
|-- run_diversity_16s.sh              # Standalone diversity analysis script
|-- run_its_taxonomy.sh               # Standalone ITS taxonomy pipeline script

Computational Requirements

Software Dependencies

Software Version Purpose
QIIME 2 2026.1 Core amplicon analysis framework
DADA2 (bundled) Amplicon sequence variant inference
MAFFT (bundled) Multiple sequence alignment
FastTree (bundled) Approximate maximum-likelihood phylogeny
Cutadapt (bundled) Adaptive primer removal (ITS)
RESCRIPt (bundled) Reference database acquisition
VSEARCH (bundled) Consensus taxonomic classification (ITS)
scikit-learn 1.4.2 Naive Bayes classifier (16S)
Python 3.10+ Scripting and notebook execution
pandas (bundled) Metadata manipulation

Hardware Recommendations

The pipeline was developed and validated on a system with 16 GB RAM. Memory-intensive steps (DADA2 denoising, MAFFT alignment, Naive Bayes classification) are configured with thread-limited execution (--p-n-threads 2 or --p-n-jobs 2) to prevent out-of-memory failures. Approximately 15 GB of disk space is required for the complete set of intermediate and output artifacts (excluding raw FASTQ files).


Installation and Environment Setup

# Clone the repository
git clone [https://github.com/Qasim-Hussain-Code/qiime2_antibiotic_microbiome_analysis.git](https://github.com/Qasim-Hussain-Code/qiime2_antibiotic_microbiome_analysis.git)
cd qiime2_antibiotic_microbiome_analysis

# Install the QIIME 2 conda environment
bash installation.sh

# Activate the environment
conda activate qiime2-amplicon-2026.1 

# Verify the installation
qiime info

Reproducing the Analysis

Step 1: Data Acquisition

Raw sequencing data must be downloaded from the European Nucleotide Archive prior to analysis. The data_download.ipynb notebook automates this process using the ENA REST API. Alternatively, the raw FASTQ files can be retrieved manually using the accession numbers listed in PRJEB95045_runinfo.tsv.

Step 2: 16S rRNA Gene Analysis

The 16S pipeline is documented in notebooks/16S_pipeline/01_16S_rRNA_amplicon_analysis.ipynb. Due to the memory requirements of several processing steps, the following standalone scripts should be executed sequentially:

# DADA2 denoising (~45 minutes)
nohup bash run_dada2_16s.sh > dada2_16s.log 2>&1 &

# Phylogenetic tree construction (~30 minutes)
nohup bash run_phylogeny_16s.sh > phylogeny_16s.log 2>&1 &

# Taxonomic classification (~20 minutes)
nohup bash run_taxonomy_16s.sh > taxonomy_16s.log 2>&1 &

# Diversity analysis and statistical testing (~15 minutes)
nohup bash run_diversity_16s.sh > diversity_16s.log 2>&1 &

Step 3: ITS Fungal Analysis

The ITS pipeline is documented in notebooks/ITS_pipeline/01_ITS_fungal_amplicon_analysis.ipynb. The notebook is designed to be executed interactively, with computationally intensive taxonomy steps optionally offloaded to:

nohup bash run_its_taxonomy.sh > its_taxonomy.log 2>&1 &

Reference Databases

Database Version Marker Classification Method Source
SILVA 138.2 NR99 16S Naive Bayes (scikit-learn) SILVA Project
UNITE 10.0 Dynamic ITS VSEARCH consensus taxonomy UNITE Community

Reference databases are acquired programmatically via the QIIME 2 RESCRIPt plugin during pipeline execution. Pre-trained classifiers and extracted reference sequences exceeding 100 MB are excluded from version control and are regenerated automatically by the pipeline scripts.


Output Artifacts

All analytical outputs are stored as QIIME 2 artifacts (.qza) and visualizations (.qzv). Visualization files can be inspected interactively using the QIIME 2 Viewer at https://view.qiime2.org without requiring a local QIIME 2 installation.

Key Output Files

Artifact Description
04_diversity_and_stats/16S/16S-core-metrics/ Rarefied tables, distance matrices, PCoA ordinations
04_diversity_and_stats/16S/16S-alpha-*-significance.qzv Kruskal-Wallis alpha diversity tests
04_diversity_and_stats/16S/16S-beta-*-*.qzv PERMANOVA beta diversity significance tests
04_diversity_and_stats/16S/16S-ancombc-*.qzv ANCOM-BC differential abundance barplots
04_diversity_and_stats/16S/16S-emperor-*.qzv Interactive PCoA Emperor plots
04_diversity_and_stats/ITS/ITS-core-metrics/ Non-phylogenetic core diversity outputs
04_diversity_and_stats/ITS/ITS-alpha-*-significance.qzv Kruskal-Wallis alpha diversity tests
04_diversity_and_stats/ITS/ITS-beta-*-*.qzv PERMANOVA beta diversity significance tests
04_diversity_and_stats/ITS/ITS-ancombc-*.qzv ANCOM-BC differential abundance barplots
03_phylogeny_and_taxonomy/16S/16S-taxonomy.qzv 16S taxonomic classification results
03_phylogeny_and_taxonomy/ITS/ITS-taxonomy.qzv ITS taxonomic classification results
03_phylogeny_and_taxonomy/ITS/ITS-taxa-barplot.qzv Interactive taxonomic composition barplot

Version Control and Large File Management

GitHub imposes a 100 MB per-file size limit. Files exceeding this threshold, including raw sequencing reads, demultiplexed QIIME 2 artifacts, and reference database files, are excluded from version control via .gitignore. Placeholder README.md files are placed in each directory containing ignored content to preserve the repository structure and document the expected files, their approximate sizes, and instructions for regeneration.

The following files are excluded (totaling approximately 6.5 GB):

File Size Regeneration Method
16S_raw/*.fastq.gz ~2.4 GB Re-download via data_download.ipynb
ITS_raw/*.fastq.gz ~3.1 GB Re-download via data_download.ipynb
02_interim_artifacts/16S/16S-paired-end-demux.qza ~2.4 GB Re-import via 16S notebook Section 3
02_interim_artifacts/ITS/ITS-paired-end-demux.qza ~3.1 GB Re-import via ITS notebook Section 3
02_interim_artifacts/ITS/ITS-trimmed-demux.qza ~398 MB Re-run ITS notebook Section 4
03_phylogeny_and_taxonomy/16S/silva-138.2-seqs.qza ~193 MB Re-run run_taxonomy_16s.sh Step 1
03_phylogeny_and_taxonomy/16S/silva-138.2-dna-seqs.qza ~174 MB Re-run run_taxonomy_16s.sh Step 1.5
03_phylogeny_and_taxonomy/16S/silva-138-99-nb-classifier.qza ~209 MB Re-download via run_taxonomy_16s.sh Step 3

Data Availability

Raw sequencing data are deposited in the European Nucleotide Archive (ENA) under BioProject accession PRJEB95045. The dataset comprises 96 paired-end sequencing runs (48 for 16S rRNA, 48 for ITS) generated on an Illumina NextSeq 2000 platform. Sample accessions, download URLs, and MD5 checksums are provided in PRJEB95045_runinfo.tsv.


Citation

If you use this pipeline or adapt any component of this workflow, please cite the original study:

Soil microbial and plant responses to increasing antibiotic concentration: a case study of five antibiotics. European Nucleotide Archive. (BioProject PRJEB95045)


License

This project is licensed under the MIT License. See the license file for details.

Downloads last month
82