-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add matched groups documentation #207
Comments
I submitted an issue to update the README for the automated subset codebase DCAN-Labs/automated-subset-analysis#2 for CDNI Brain, we can just add a link for now and I'll add MSI- specific info as I go |
here is the information specific to MSI that can be added to CDNI's Brain. The rest has been integrated into the repo's readme on GitHub. some of the formatting might need updating since I just picked out the parts that were relevant to MSI from different parts of the documentation. it might also be nice to review the contents for accuracy as well (for instance, I'm not sure if the errors described at the end are an issue anymore) Creating Matched Demographic SubgroupsFor full information on how to run Location On the MSISeveral copies and subsets of the ABCD ARMS demographics files are kept in the directory at the path below:
I typically use the How to Generate Group Average MatricesYou will need either
ExampleTo generate matched subsets using the existing subset analysis script on the MSI, run In the code below, change the variable declarations so they match (a) the data that you can access and (b) what you are trying to do. I filled in the paths to the input data I have normally used. # Parent directory containing ABCD data, including input files for this script
dir_ABCD="/home/feczk001/shared/projects/ABCD";
# Directory containing average brain scan .pconn.nii files
dir_pconns="${dir_ABCD}/conan_subset_analysis/gp-avg-pconns";
# Directory containing demographics .csv files
dir_demo="${dir_ABCD}/core_task_activation_study/code/demographics";
# Directory containing subset analysis code
dir_ASA="/home/feczk001/shared/code/internal/utilities/automated_subset_analysis";
# Directory to save subset analysis output files into
dir_output="./test/output_dir/";
# How many participants should be in each subset? Do you want to generate
# subsets of multiple sizes, e.g. 50 participants in one and 500 in another?
subjects_per_subset="50 100 500";
# How many subset pairs of each subset size do you want to generate?
pairs_to_make=2;
# Run the subset analysis script
python3 ${dir_ASA}/automated_subset_analysis.py \
${dir_demo}/group1_demo_original.csv \
${dir_demo}/group2_demo_original.csv \
--group-1-avg-file ${dir_pconns}/gp1_pconns_AVG.pconn.nii \
--group-2-avg-file ${dir_pconns}/gp2_pconns_AVG.pconn.nii \
--subset-size ${subjects_per_subset} \
--n-analyses ${pairs_to_make} \
--output ${dir_output} Output FilesThe script will save the demographically-matched subset pair into a text file in the Warnings and TroubleshootingScript Printing Too Much TextIn its current form, the subset analysis script will print a lot of text to the terminal. If you would rather hide that text, then you can add Takes Too Much Time to RunSeveral factors can make the
Common Errors
|
/home/feczk001/shared/code/internal/utilities/automated_subset_analysis/HowToMakeSubsets.md
The text was updated successfully, but these errors were encountered: