Skip to content

This script automates the download of preprocessed brain imaging data from the ABIDE dataset, focusing on a specific derivative, preprocessing pipeline, and noise-removal strategy. It filters participants by diagnosis (autism or controls) and downloads relevant data, streamlining research on autism spectrum disorder.

License

Notifications You must be signed in to change notification settings

ShawonBarman/How-to-download-ABIDE-Preprocessed-dataset-for-autism-detection

Repository files navigation

How-to-download-ABIDE-Preprocessed-dataset-for-autism-detection

The ABIDE (Autism Brain Imaging Data Exchange) preprocessed dataset is a collection of neuroimaging data specifically curated for autism spectrum disorder (ASD) research. It comprises brain imaging data from individuals with ASD and typically developing controls. The dataset has been preprocessed to remove noise, correct for artifacts, and align the data across different imaging centers and acquisition protocols. This preprocessing makes the data more suitable for comparative and statistical analyses.

The need for the ABIDE preprocessed dataset arises from the complexity of studying brain connectivity and functional differences in individuals with ASD. Analyzing raw neuroimaging data requires extensive preprocessing to ensure data quality and consistency, which can be challenging and time-consuming. By providing preprocessed data, researchers can focus on analyzing and interpreting the results of studies related to autism, rather than spending significant effort on preprocessing.

download_abide_preprocessed_dataset.ipynb script is designed to download preprocessed data from the ABIDE dataset for autism research. It focuses on a specific derivative (a type of data), preprocessing pipeline, and noise-removal strategy. The collect_and_download function processes participant information from the ABIDE phenotypic file, filtering participants based on their diagnosis (autism or typically developing controls), mean frame displacement, and other criteria. If a participant meets the criteria, the script constructs the download path and saves the data to a specified local directory. The script allows customization of the derivative, pipeline, strategy, and diagnosis for data collection. Overall, it automates the process of retrieving preprocessed brain imaging data to aid in research related to autism spectrum disorder.

Let's dive into more detailed explanations:

  1. Purpose and Dataset:
    This script is designed to automate the process of downloading preprocessed brain imaging data from the ABIDE (Autism Brain Imaging Data Exchange) dataset. ABIDE provides valuable data for autism research, enabling scientists to investigate brain connectivity patterns and differences in individuals with autism spectrum disorder (ASD) compared to typically developing controls (TDC).
  2. Data Selection Criteria:
    The script targets specific subsets of the dataset based on the following criteria:
    • 'derivative:' This refers to a specific measure calculated from the brain imaging data, such as 'rois_cc200' (region of interest connectivity based on the CC200 atlas).
    • 'pipeline:' It indicates the preprocessing pipeline used to prepare the data, for instance, 'cpac' (Configurable Pipeline for the Analysis of Connectomes).
    • 'strategy:' This represents the noise removal approach applied during preprocessing, like 'filt_global' (global signal regression with band-pass filtering).
    • 'diagnosis:' This parameter determines whether to focus on participants with ASD ('asd'), TDC ('tdc'), or both ('both').
  3. Data Retrieval Process:
    The 'collect_and_download' function first connects to the ABIDE dataset's Amazon S3 storage. It processes the phenotypic file containing participant information, extracting details such as site, age, sex, diagnosis, and preprocessing quality metrics like mean frame displacement.
  4. Filtering Participants:
    Using these details, the script filters participants who meet the specified criteria. It checks whether the diagnosis matches the desired diagnosis group and whether the mean frame displacement is below a threshold (0.2). This helps ensure the data quality.
  5. File Download:
    For participants that pass the filtering, the script constructs the download path based on the selected parameters (derivative, pipeline, strategy). It then downloads the corresponding preprocessed data file (in NIfTI or 1D format) from the S3 bucket. Downloaded files are saved in a local directory specified by 'download_data_dir'.
  6. Progress and Completion:
    Throughout the download process, the script provides updates on the progress, indicating the percentage of completed downloads. Once all eligible files are downloaded, the script concludes with a "Done!" message.

In essence, this script streamlines the process of collecting preprocessed brain imaging data from the ABIDE dataset, allowing researchers to efficiently gather data for their autism-related studies by customizing the data selection criteria.

To run the code in a Jupyter Notebook, follow these steps:

  1. Open Jupyter Notebook: Open your Jupyter Notebook environment. If you're using Anaconda, you can launch Jupyter Notebook from the Anaconda Navigator or by running the command jupyter notebook in your terminal/command prompt.
  2. Navigate to the Notebook: Using the Jupyter Notebook interface, navigate to the directory where the download_abide_preprocessed_dataset.ipynb notebook is located.
  3. Open the Notebook: Click on the download_abide_preprocessed_dataset.ipynb notebook to open it.
  4. Run the Cells: The notebook is divided into cells. You can execute each cell by clicking on it and then pressing Shift + Enter. Alternatively, you can use the "Run" button from the toolbar.
    • Run the cell that contains the code by clicking on it.
    • Press Shift + Enter or click the "Run" button in the toolbar to execute the code in the cell.
  5. Monitor Progress: As you run the cells, the code will execute, and you'll see output messages and potential progress updates, including information about downloaded files.
  6. Review Output: After running the cells, review the output to ensure that the code executed as expected. You should see messages indicating the progress of downloading and the "Done!" message at the end if everything completed successfully.
  7. Check Local Directory: Open the specified download_data_dir directory in your file explorer to see the downloaded files.

About

This script automates the download of preprocessed brain imaging data from the ABIDE dataset, focusing on a specific derivative, preprocessing pipeline, and noise-removal strategy. It filters participants by diagnosis (autism or controls) and downloads relevant data, streamlining research on autism spectrum disorder.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published