Temporal single-cell atlas of full-length Huntington's disease mouse model defines stage-specific signatures of corticostriatal dysfunction.
The 7 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
- [1] § Methods › SPLiT-seq single-nucleus read demultiplexing ↔ splitseqdemultiplex_0.2.1.sh, lines 271–324 · score 0.74 · featureCounts, Seq_demultiplexing, UMI tools, SPLiT, samtools, memory
- [2] § Methods › SPLiT-seq single-nucleus read demultiplexing ↔ splitseqdemultiplex_0.2.2.sh, lines 280–333 · score 0.74 · featureCounts, Seq_demultiplexing, UMI tools, SPLiT, samtools, memory
- [3] § Methods › SPLiT-seq single-nucleus read demultiplexing ↔ splitseqdemultiplex_0.2.1.sh, lines 1–41 · score 0.60 · SPLiT Seq demultiplexing, pipeline, python, tool, FASTQ, barcoded
- [4] § Methods › SPLiT-seq single-nucleus read demultiplexing ↔ Extract_BC_UMI.py, lines 35–37 · score 0.53 · Seq barcode sequence, SPLiT, bp
- [5] § Methods › SPLiT-seq single-nucleus read demultiplexing ↔ splitseqdemultiplex_0.2.1.sh, lines 368–422 · score 0.53 · Seq_demultiplexing, SPLiT, pipeline, threads, parallelization, FASTQ
- [6] § Methods › Jensen-Shannon Divergence (JSD) analysis ↔ prep_TCC_matrix.py, lines 133–136 · score 0.51 · Jensen Shannon, pairwise, distance
- [7] § Methods › SPLiT-seq sublibrary generation ↔ Collapse_RanHex_Odt.sh, the whole file · a weak match · score 0.50 · RT primer, plates, dT, seq, barcoding
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Shell · 532 lines · 21 KB · MIT · 3 matches
- #!/bin/bash
- #alias python='python'
- #####################################################################################
- # Example Use #
- # Script modified on 29the august, 2019
- # A python script Collapse_Ranhex_Odt.py ( Dipankar / Dumaatravaie ) had replaced the bash script Collapse_Ranhex_Odt.sh
- # Fixed the issue with 'Too many arguments error' in parallel ( Dipankar / Dumaatravaie ) in the case of Large Number of cells (> 50,000 or more )
- #####################################################################################
- #bash splitseqdemultiplex.sh \
- # -n 12 \
- # -v merged \
- # -e 1 \
- # -m 10 \
- # -1 Round1_barcodes_new4.txt \
- # -2 Round2_barcodes_new4.txt \
- # -3 Round3_barcodes_new4.txt \
- # -f SRR6750041_1_smalltest.fastq \
- # -r SRR6750041_2_smalltest.fastq \
- # -o results \
- # -t 8000 \
- # -g 100000 \
- # -a star \
- # -x /path/to/star/genome/index/folder/GRCm38/ \
- # -y /path/to/matching/genome/annotation/gtf/GRCm38.gtf \
- # -k /path/to/kallisto/index/.idx/ \
- # -i /path/to/kallisto/index/.fasta
- ################/media/bachar.d/ec530b5a-02c3-4ebe-8b79-8d8a7fc98220/MirCos_splitSeq/SPLiT-Seq_demultiplexing_annotation_pipeline/New_Script_Test/results_b
- # Dependencies #
- ################
- # Python3 must be installed and accessible as "python" from your system's path
- type python &>/dev/null || { echo "ERROR python is not installed or is not accessible from the PATH as python"; exit 1; }
- # UMI_Tools must be installed and accessible from the PATH as "umi_tools"
- type umi_tools &>/dev/null || { echo "ERROR umi_tools is not installed or is not accessible from the PATH as umi_tools"; exit 1; }
- # parallel must be installed and accessible from the path as "parallel"
- type parallel &>/dev/null || { echo "ERROR parallel is not installed or is not accessible from the PATH as parallel"; exit 1; }
- # Not to get the error "/bin/ls: Argument list too long"
- # So, a solution is to increase the amount of space available for the stack.
- # https://unix.stackexchange.com/questions/45583/argument-list-too-long-how-do-i-deal-with-it-without-changing-my-command
- ulimit -s 65536
- ###########################
- ### Manually Set Inputs ###
- ###########################
- export NUMCORES="4"
- export VERSION="fast"
- export ERRORS="1"
- export MINREADS="10"
- export ROUND1="Round1_barcodes_new5.txt"
- export ROUND2="Round2_barcodes_new4.txt"
- export ROUND3="Round3_barcodes_new4.txt"
- export FASTQ_F="SRR6750041_1_smalltest.fastq"
- export FASTQ_R="SRR6750041_2_smalltest.fastq"
- export OUTPUT_DIR="results_multiThread"
- export TARGET_MEMORY="8000"
- export GRANULARITY="100000"
- export COLLAPSE="true"
- export ALIGN="star"
- export STARGENOME="/mnt/isilon/davidson_lab/ranum/Tools/STAR_Genomes/mm10/"
- #STARGTF="GTF /mnt/isilon/davidson_lab/ranum/Tools/STAR_Genomes/mm10_Raw/Mus_musculus.GRCm38.96.chr.gtf"
- export SAF="SAF ../GRCm38_genes.saf"
- #KALLISTOINDEXIDX="/mnt/isilon/davidson_lab/ranum/Tools/Kallisto_Index/GRCm38.idx"
- #KALLISTOINDEXFASTA="/mnt/isilon/davidson_lab/ranum/Tools/Kallisto_Index/Mus_musculus.GRCm38.cdna.all.fa"
- ################################
- ### User Inputs Using Getopt ###
- ################################
- # NOTE on mac systems the options won't work because mac doesnt have the GNU version of getopt by default. GNU getopt can be installed on mac using homebrew. You can do this by running 'brew install gnu_getopt'
- # Once gnu_getopt is installed you can run it with using this '/usr/local/Cellar/gnu-getopt/1.1.6/bin/getopt' as the executable in the place of 'getopt' below.
- # read the options
- TEMP=`getopt -o n:v:e:m:1:2:3:f:r:o:t:g:c:a:x:y:s:k:i --long numcores:,errors:,minreads:,round1barcodes:,round2barcodes:,round3barcodes:,fastqF:,fastqR:,outputdir:,targetMemory:,granularity:,collapseRandomHexamers:,align:,starGenome:,starGTF:,geneAnnotationSAF:,kallistoIndexIDX:,kallistoIndexFASTA: -n 'test.sh' -- "$@"`
- eval set -- "$TEMP"
- # extract options and their arguments into variables.
- echo "Checking options..."
- while true ; do
- case "$1" in
- -n|--numcores)
- case "$2" in
- "") shift 2 ;;
- *) NUMCORES=$2 ; shift 2 ;;
- esac ;;
- -v|--version)
- case "$2" in
- "") shift 2 ;;
- *) VERSION=$2 ; shift 2 ;;
- esac ;;
- -e|--errors)
- case "$2" in
- "") shift 2 ;;
- *) ERRORS=$2 ; shift 2 ;;
- esac ;;
- -m|--minreads)
- case "$2" in
- "") shift 2 ;;
- *) MINREADS=$2 ; shift 2 ;;
- esac ;;
- -1|--round1barcodes)
- case "$2" in
- "") shift 2 ;;
- *) ROUND1=$2 ; shift 2 ;;
- esac ;;
- -2|--round2barcodes)
- case "$2" in
- "") shift 2 ;;
- *) ROUND2=$2 ; shift 2 ;;
- esac ;;
- -3|--round3barcodes)
- case "$2" in
- "") shift 2 ;;
- *) ROUND3=$2 ; shift 2 ;;
- esac ;;
- -f|--fastqF)
- case "$2" in
- "") shift 2 ;;
- *) FASTQ_F=$2 ; shift 2 ;;
- esac ;;
- -r|--fastqR)
- case "$2" in
- "") shift 2 ;;
- *) FASTQ_R=$2 ; shift 2 ;;
- esac ;;
- -o|--outputdir)
- case "$2" in
- "") shift 2 ;;
- *) OUTPUT_DIR=$2 ; shift 2 ;;
- esac ;;
- -t|--targetMemory)
- case "$2" in
- "") shift 2;;
- *) TARGET_MEMORY=$2 ; shift 2 ;;
- esac ;;
- -g|--granularity)
- case "$2" in
- "") shift 2;;
- *) GRANULARITY=$2 ; shift 2 ;;
- esac ;;
- -c|--collapseRandomHexamers)
- case "$2" in
- "") shift 2;;
- *) COLLAPSE=$2 ; shift 2 ;;
- esac ;;
- -a|--align)
- case "$2" in
- "") shift 2;;
- *) ALIGN=$2 ; shift 2 ;;
- esac ;;
- -x|--starGenome)
- case "$2" in
- "") shift 2;;
- *) STARGENOME=$2 ; shift 2 ;;
- esac ;;
- -y|--starGTF)
- case "$2" in
- "") shift 2;;
- *) STARGTF=$2 ; shift 2 ;;
- esac ;;
- -s|--geneAnnotationSAF)
- case "$2" in
- "") shift 2;;
- *) SAF=$2 ; shift 2 ;;
- esac ;;
- -k|--kallistoIndexIDX)
- case "$2" in
- "") shift 2;;
- *) KALLISTOINDEXIDX=$2 ; shift 2 ;;
- esac ;;
- -i|--kallistoIndexFASTA)
- case "$2" in
- "") shift 2;;
- *) KALLISTOINDEXFASTA=$2 ; shift 2 ;;
- esac ;;
- --) shift ; break ;;
- *) echo "Internal error!" ; exit 1 ;;
- esac
- done
- ###############################
- ### Write Input Args To Log ###
- ###############################
- # Print the arguments provided as input to splitseqdemultiplex.sh
- echo "splitseqdemultiplex.sh has been run with the following input arguments"
- echo "numcores = $NUMCORES"
- echo "errors = $ERRORS"
- echo "minreadspercell = $MINREADS"
- echo "round1_barcodes = $ROUND1"
- echo "round2_barcodes = $ROUND2"
- echo "round3_barcodes = $ROUND3"
- echo "fastq_f = $FASTQ_F"
- echo "fastq_r = $FASTQ_R"
- echo "targetMemory = $TARGET_MEMORY"
- echo "granularity = $GRANULARITY"
- echo "collapseRandomHexamers = $COLLAPSE"
- echo "align = $ALIGN"
- echo "starGenome = $STARGENOME"
- echo "starGTF = $STARGTF"
- echo "geneAnnotationSAF = $SAF"
- echo "kallistoIndexIDX = $KALLISTOINDEXIDX"
- echo "kallistoIndexFASTA = $KALLISTOINDEXFASTA"
- #if [ $COLLAPSE = true ]
- #then
- #ROUND1="Round1_barcodes_new5.txt"
- #fi
- if [ $VERSION = fast ]
- then
- #######################################
- # STEP 1: Demultiplex Using Barcodes #
- #######################################
- # Generate a progress message
- now=$(date '+%Y-%m-%d %H:%M:%S')
- echo "Beginning STEP1: Demultiplex using barcodes. Current time : $now"
- # Demultiplex the fastqr file using barcodes
- mkdir $OUTPUT_DIR
- # Set up a function to parallelize the Demultiplex Using Barcodes Step
- linesInInputFastq=$(wc -l < $FASTQ_R)
- num_linesPerSplitFastq=$(expr $linesInInputFastq / $NUMCORES)
- #split --lines=${num_linesPerSplitFastq} $FASTQ_R split_fastq_R_
- #split --lines=${num_linesPerSplitFastq} $FASTQ_F split_fastq_F_
- head -n 100 $FASTQ_R > position_learner_fastqr.fastq
- split --number="l/$NUMCORES" $FASTQ_R split_fastq_R_
- split --number="l/$NUMCORES" $FASTQ_F split_fastq_F_
- #my_func() {
- # python InDevOptimizations/DemultiplexUsingBarcodes_New_V1.py -f "split_fastq_F$1" -r "split_fastq_R$1" -b $GRANULARITY -o $OUTPUT_DIR -e $ERRORS -p -t $MINREADS
- # }
- #export -f my_func
- #ls split_fastq_F* | awk -F "split_fastq_F" '{print $1}' | parallel my_func {}
- ls split_fastq_F* | awk -F "split_fastq_F" '{print $2}' | parallel "python InDevOptimizations/DemultiplexUsingBarcodes_New_V1.py -f split_fastq_F{} -r split_fastq_R{} -b $GRANULARITY -o $OUTPUT_DIR -e $ERRORS -p -t $MINREADS"
- #python InDevOptimizations/DemultiplexUsingBarcodes_New_V1.py -f $FASTQ_F -r $FASTQ_R -b $GRANULARITY -o $OUTPUT_DIR -e $ERRORS -p -t $MINREADS
- #--minreads $MINREADS --round1barcodes $ROUND1 --round2barcodes $ROUND2 --round3barcodes $ROUND3 --fastqr $FASTQ_R --errors $ERRORS --outputdir $OUTPUT_DIR --targetMemory $TARGET_MEMORY --granularity $GRANULARITY
- #echo "$(ls $OUTPUT_DIR/*.fastq | wc -l) results files 'cells' were demultiplexed from the input .fastq file"
- rm position_learner_fastqr.fastq
- rm split_fastq_*
- ###########################
- # STEP 5: Perform Mapping #
- ###########################
- # generate batch file
- now=$(date '+%Y-%m-%d %H:%M:%S')
- echo "Beginning STEP5: Performing Mapping. Current time : $now"
- if [ $ALIGN = star ]
- then
- pushd $OUTPUT_DIR
- # Run alignment of merged .fastq file using STAR
- STAR --runThreadN $NUMCORES \
- --readFilesIn MergedCells_1.fastq \
- --outFilterMismatchNoverLmax 0.05 \
- --genomeDir $STARGENOME \
- --alignIntronMax 20000 \
- --outSAMtype BAM SortedByCoordinate
- #cp /media/bachar.d/ec530b5a-02c3-4ebe-8b79-8d8a7fc98220/MirCos_splitSeq/SPLiT-Seq_demultiplexing-master/results/*.bam /media/bachar.d/ec530b5a-02c3-4ebe-8b79-8d8a7fc98220/MirCos_splitSeq/SPLiT-Seq_demultiplexing-master/
- if [[ $(echo "$SAF" | awk '{print $1}') = SAF ]]
- then
- countsMode=$(echo "$SAF" | awk '{print $1}')
- countsFile=$(echo "$SAF" | awk '{print $2}')
- #echo $countsFile
- #echo $countsMode
- # Assign reads to genes
- # Removed -M parameters for excluding multimapping reads
- featureCounts -F $countsMode \
- -a $countsFile \
- -o gene_assigned \
- -R BAM Aligned.sortedByCoord.out.bam \
- -T $NUMCORES \
- -M
- else
- countsMode=$(echo "$STARGTF" | awk '{print $1}')
- countsFile=$(echo "$STARGTF" | awk '{print $2}')
- #echo "Hello world "
- #echo $countsFile
- #echo "Hello world "
- #echo $countsMode
- # Removed -M parameters for excluding multimapping reads
- featureCounts -F $countsMode \
- -a $countsFile \
- -o gene_assigned \
- -R BAM Aligned.sortedByCoord.out.bam \
- -T $NUMCORES \
- -M
- fi
- samtools sort Aligned.sortedByCoord.out.bam.featureCounts.bam -o assigned_sorted.bam
- samtools index assigned_sorted.bam
- # Count UMIs per gene per cell
- umi_tools count --wide-format-cell-counts --per-gene --gene-tag=XT --assigned-status-tag=XS --per-cell -I assigned_sorted.bam -S counts.tsv.gz
- popd
- fi
- fi
- if [ $VERSION = merged ]
- then
- #######################################
- # STEP 1: Demultiplex Using Barcodes #
- #######################################
- # Generate a progress message
- now=$(date '+%Y-%m-%d %H:%M:%S')
- echo "Beginning STEP1: Demultiplex using barcodes. Current time : $now"
- # Demultiplex the fastqr file using barcodes
- python demultiplex_using_barcodes.py --minreads $MINREADS --round1barcodes $ROUND1 --round2barcodes $ROUND2 --round3barcodes $ROUND3 --fastqr $FASTQ_R --errors $ERRORS --outputdir $OUTPUT_DIR --targetMemory $TARGET_MEMORY --granularity $GRANULARITY
- echo "$(ls $OUTPUT_DIR/*.fastq | wc -l) results files 'cells' were demultiplexed from the input .fastq file"
- ##########################################################################
- # STEP 2: Collapse OligoDT and RandomHexamer Barcodes from the same well #
- ##########################################################################
- # Generate a progress message
- now=$(date '+%Y-%m-%d %H:%M:%S')
- echo "Beginning STEP2: Collapse OligoDT and RandomHexamer Barcodes from the same well. Current time : $now"
- if [ $COLLAPSE = true ]
- then
- # Bash script is painfully slow
- # Replaced by python script, which is 100 times faster then the bash script
- #bash Collapse_RanHex_Odt.sh
- python Collapse_RanHex_Odt.py
- fi
- echo "after collapsing OligoDT and RandomHexamer Barcodes, $(ls $OUTPUT_DIR/*.fastq | wc -l) results files 'cells' remain."
- ##########################################################
- # STEP 3: For every cell find matching paired end reads #
- ##########################################################
- # Generate a progress message
- now=$(date '+%Y-%m-%d %H:%M:%S')
- echo "Beginning STEP3: Finding read mate pairs. Current time : $now"
- # Now we need to collect the other read pair. To do this we can collect read IDs from the $OUTPUT_DIR files we generated in step one.
- # Generate an array of cell filenames
- python matepair_finding.py --input $OUTPUT_DIR --fastqf $FASTQ_F --output $OUTPUT_DIR --targetMemory $TARGET_MEMORY --granularity $GRANULARITY
- ########################
- # STEP 4: Extract UMIs #
- ########################
- # Generate a progress message
- now=$(date '+%Y-%m-%d %H:%M:%S')
- echo "Beginning STEP4: Extracting UMIs. Current time : $now"
- # Implement new method for umi and cell barcode extraction
- pushd $OUTPUT_DIR
- #parallel python ../Extract_BC_UMI.py -R {} -F {}-MATEPAIR ::: $(ls *.fastq)
- # Modified the original parallel command to avoid TOO many arguments error
- ls | grep '\.fastq$' | parallel python ../Extract_BC_UMI.py -R {} -F {}-MATEPAIR
- cat *_1.fastq > MergedCells
- #parallel rm {} ::: $(ls *fastq*)
- # This command has been changed to avoid Arguments Lists Too Long error
- # Above command Gives error Argument List Too Long using parallel rm command, and the pipeline halts
- # So, we use either loop to delete the files one by one
- # for i in *.fastq*;do rm "$i";done
- # Or, we can increase stack limit by command ulimit -s 65536, done at the beginning of this script
- # https://unix.stackexchange.com/questions/45583/argument-list-too-long-how-do-i-deal-with-it-without-changing-my-command
- # and we modify the original parallel commands like below, to avoid too many parameters errors
- #parallel rm {} ::: $(ls *fastq*)
- ls | grep '\.fastq*' | parallel rm {}
- mv MergedCells MergedCells_1.fastq
- popd
- ###########################
- # STEP 5: Perform Mapping #
- ###########################
- # generate batch file
- now=$(date '+%Y-%m-%d %H:%M:%S')
- echo "Beginning STEP5: Performing Mapping. Current time : $now"
- if [ $ALIGN = star ]
- then
- pushd $OUTPUT_DIR
- # Run alignment of merged .fastq file using STAR
- STAR --runThreadN $NUMCORES \
- --readFilesIn MergedCells_1.fastq \
- --outFilterMismatchNoverLmax 0.05 \
- --genomeDir $STARGENOME \
- --alignIntronMax 20000 \
- --outSAMtype BAM SortedByCoordinate
- #cp /media/bachar.d/ec530b5a-02c3-4ebe-8b79-8d8a7fc98220/MirCos_splitSeq/SPLiT-Seq_demultiplexing-master/results/*.bam /media/bachar.d/ec530b5a-02c3-4ebe-8b79-8d8a7fc98220/MirCos_splitSeq/SPLiT-Seq_demultiplexing-master/
- if [ $(echo "$SAF" | awk '{print $1}') = SAF ]
- then
- countsMode=$(echo "$SAF" | awk '{print $1}')
- countsFile=$(echo "$SAF" | awk '{print $2}')
- #echo $countsFile
- #echo $countsMode
- # Assign reads to genes
- # Removed -M parameters for excluding multimapping reads
- featureCounts -F $countsMode \
- -a $countsFile \
- -o gene_assigned \
- -R BAM Aligned.sortedByCoord.out.bam \
- -T $NUMCORES \
- -M
- else
- countsMode=$(echo "$STARGTF" | awk '{print $1}')
- countsFile=$(echo "$STARGTF" | awk '{print $2}')
- #echo "Hello world "
- #echo $countsFile
- #echo "Hello world "
- #echo $countsMode
- # Removed -M parameters for excluding multimapping reads
- featureCounts -F $countsMode \
- -a $countsFile \
- -o gene_assigned \
- -R BAM Aligned.sortedByCoord.out.bam \
- -T $NUMCORES \
- -M
- fi
- samtools sort Aligned.sortedByCoord.out.bam.featureCounts.bam -o assigned_sorted.bam
- samtools index assigned_sorted.bam
- # Count UMIs per gene per cell
- umi_tools count --wide-format-cell-counts --per-gene --gene-tag=XT --assigned-status-tag=XS --per-cell -I assigned_sorted.bam -S counts.tsv.gz
- popd
- fi
- fi
- if [ $VERSION = split ]
- then
- #######################################
- # STEP 1: Demultiplex Using Barcodes #
- #######################################
- # Generate a progress message
- now=$(date '+%Y-%m-%d %H:%M:%S')
- echo "Beginning STEP1: Demultiplex using barcodes. Current time : $now"
- # Demultiplex the fastqr file using barcodes
- python demultiplex_using_barcodes.py --minreads $MINREADS --round1barcodes $ROUND1 --round2barcodes $ROUND2 --round3barcodes $ROUND3 --fastqr $FASTQ_R --errors $ERRORS --outputdir $OUTPUT_DIR --targetMemory $TARGET_MEMORY --granularity $GRANULARITY
- ##########################################################
- # STEP 2: For every cell find matching paired end reads #
- ##########################################################
- # Generate a progress message
- now=$(date '+%Y-%m-%d %H:%M:%S')
- echo "Beginning STEP2: Finding read mate pairs. Current time : $now"
- # Now we need to collect the other read pair. To do this we can collect read IDs from the $OUTPUT_DIR files we generated in step one.
- # Generate an array of cell filenames
- python matepair_finding.py --input $OUTPUT_DIR --fastqf $FASTQ_F --output $OUTPUT_DIR --targetMemory $TARGET_MEMORY --granularity $GRANULARITY
- ########################
- # STEP 3: Extract UMIs #
- ########################
- # Generate a progress message
- now=$(date '+%Y-%m-%d %H:%M:%S')
- echo "Beginning STEP3: Extracting UMIs. Current time : $now"
- rm -r $OUTPUT_DIR-UMI
- mkdir $OUTPUT_DIR-UMI
- # Parallelize UMI extraction
- {
- ls $OUTPUT_DIR | grep \.fastq$ | parallel -j $NUMCORES -k "umi_tools extract -I $OUTPUT_DIR/{} --read2-in=$OUTPUT_DIR/{}-MATEPAIR --bc-pattern=NNNNNNNNNN --log=processed.log --read2-out=$OUTPUT_DIR-UMI/{}"
- } &> /dev/null
- #################################
- # STEP 4: Collect Summary Stats #
- #################################
- # Print the number of lines and barcode ID for each cell to a file
- echo "$(wc -l $OUTPUT_DIR-UMI/*.fastq)" | sed '$d' | sed 's/$OUTPUT_DIR-UMI\///g' > linespercell.txt
- ###########################
- # STEP 5: Perform Mapping #
- ###########################
- # generate batch file
- if [ $ALIGN = kallisto ]
- then
- # generate batch file
- rm batch.txt
- for file in $(ls results-UMI/); do
- echo "$(echo $file | sed 's|.fastq||g')" "$(echo $file | sed 's|fastq|umi|g')" "$(echo $file)" >> batch.txt
- python align_kallisto.py -F results-UMI/$file
- done
- pushd results-UMI
- mkdir ../kallisto_output
- kallisto pseudo -i $KALLISTOINDEXIDX -o ../kallisto_output --single --umi -b ../batch.txt
- cp matrix.cells results4_colNames_cellIDs.txt
- popd
- pushd kallisto_output
- python ../prep_TCC_matrix.py -T matrix.tsv -E matrix.ec -O results -I $KALLISTOINDEXFASTA -G geneIDs
- popd
- fi
- number_of_cells=$(ls -1 "$OUTPUT_DIR-UMI" | wc -l)
- echo "a total of $number_of_cells cells were demultiplexed from the input .fastq"
- fi
- #All finished
- #number_of_cells=$(ls -1 "$OUTPUT_DIR-UMI" | wc -l)
- now=$(date '+%Y-%m-%d %H:%M:%S')
- #echo "a total of $number_of_cells cells were demultiplexed from the input .fastq"
- # Re Initialize the stack limit to default
- ulimit -s 8192
- echo "Current time : $now"
- echo "all finished goodbye"
splitseqdemultiplex_0.2.1.sh at commit a8015fb, under MIT · at the source
Overview
- Raymond G. Perelman Center for Cellular and Molecular Therapeutics, Children’s Hospital of Philadelphia, Philadelphia, PA 19104 USA
- Neuroscience Graduate Group, Biomedical Graduate Studies Program, University of Pennsylvania, Philadelphia, PA 19104 USA
- Latus Bio, N 30th Street, Philadelphia, PA 19104 USA
- Cell and Molecular Biology Graduate Group, Biomedical Graduate Studies Program, University of Pennsylvania, Philadelphia, PA 19104 USA
- Department of Pathology & Laboratory Medicine, University of Pennsylvania, Philadelphia, PA 19104 USA
Abstract
Background: Huntington’s disease (HD) involves progressive corticostriatal dysfunction, yet the temporal dynamics and cell type-specific vulnerability patterns remain incompletely understood. While recent single-cell studies in rapidly progressing models have revealed early developmental and regional changes, temporal profiling distinguishing pathogenic mechanisms from normal aging in full-length HTT models remains lacking. Resolving stage-specific temporal dynamics across interconnected striatal and cortical neuronal populations over protracted time is essential for identifying drivers of cellular dysfunction.
Methods: A temporal single-nucleus transcriptomic atlas was generated from striatum and motor cortex from heterozygous zQ175 knock-in mice at early symptomatic (6 months) and late symptomatic (18 months) stages. This full-length huntingtin model enables staging of progressive circuit dysfunction alongside physiological aging. The high inherited CAG repeat length of the zQ175 model places cells beyond the somatic expansion threshold associated with transcriptional dysregulation and identity erosion in vulnerable human neuronal populations, yet prior to the de-repression crisis and cell loss observed at the most extreme expansions in HD, providing a tractable window into the progressive molecular pathogenic cascade. Genotype-dependent effects were modeled to distinguish cell type-specific signatures of disease mechanisms from age-related and compensatory changes. Integration of weighted gene co-expression and transcription factor regulatory networks with protein-protein interaction databases predicted candidate regulators of stage-specific programs. Findings were validated across human HD datasets and the rapidly progressive R6/
Results: Temporal gene and network analysis revealed diverging, converging and biphasic patterns of transcriptional changes, distinguishing progressive disease and neuronal identity loss from aging. 21 cell type-specific gene co-expression modules were validated in human HD and R6/
Conclusions: This temporally resolved atlas reveals stage-specific transcriptional dynamics of disease-relevant gene expression programs and physiological trajectories in vulnerable neuronal populations. distinguished from aging alone. This work establishes an important framework for understanding the temporal and regional coordination of pathogenic mechanisms, providing molecular insights into stage-specific therapeutic intervention.
Supplementary Information: The online version contains supplementary material available at 10.1186/
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 7 matches between paragraphs and lines of code.
DavidsonLabCHOP/SPLiT-seq
a8015fb890e2129a19b0abfece3e1413a277a3ef, 18 December 2024Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
26 files
- Collapse_RanHex_Odt.py, Python, 76 lines
- Collapse_RanHex_Odt.sh, Shell, 65 lines, 1 match
- Extract_BC_UMI.py, Python, 98 lines, 1 match
- InDevOptimizations/
DemultiplexUsingBarcodes , Python, 444 lines_New_V1.py - InDevOptimizations/
HammingTest.py , Python, 20 lines - align_kallisto.py, Python, 45 lines
- demultiplex_using_barcod
es.py , Python, 416 lines - matepair_finding.py, Python, 75 lines
- prep_TCC_matrix.py, Python, 180 lines, 1 match
- python_tool/
DemultiplexUsingBarcodes , Python, 466 lines_New_V2.py - python_tool/
Splitseq_fun_lib.py , Python, 196 lines - python_tool/
barcode_demux.cpp , C++, 145 lines - python_tool/
barcode_demux_wrapper.py , Python, 29 lines - python_tool/
run.sh , Shell, 29 lines - python_tool/
runTrim.sh , Shell, 73 lines - python_tool/
run_onlyAlign.sh , Shell, 29 lines - python_tool/
splitseqdemultiplex_0.2. , Python, 97 lines2.py - python_tool/
splitseqdemultiplex_0.2. , Python, 100 lines3.py - python_tool/
splitseqdemultiplex_1.0. , Python, 148 lines0.py - python_tool/
splitseqdemultiplex_1.1. , Python, 148 lines0.py - python_tool/
splitseqdemultiplex_only , Python, 112 linesAlign.py - splitseq_utilities.py, Python, 134 lines
- splitseqdemultiplex_0.2.
1.sh , Shell, 532 lines, 3 matches - splitseqdemultiplex_0.2.
2.sh , Shell, 581 lines, 1 match - LICENSE, License, 21 lines
- README.md, Text, 243 lines
DavidsonLabCHOP/Robbins_HDsnRNAseq_2025
c402d25cc96e1e42deb503a8a0b4832c20c0eaf4, 4 January 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
1 file
- README.md, Text, 1 line
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 24 scripts, each with its path and the digest of its content;
- 7 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- figshare:33159906, at figshare; found in DataCite
- figshare:33159909, at figshare; found in DataCite
- figshare:33159912, at figshare; found in DataCite
- figshare:33159915, at figshare; found in DataCite
- figshare:33159918, at figshare; found in DataCite
- figshare:33159921, at figshare; found in DataCite
- figshare:33159924, at figshare; found in DataCite
- geo:GSE152058, at NCBI GEO; found in “Data availability”
Data availability
The datasets generated during the current study are available in theSequence Read Archive (SRA) under BioProject accession number: PRJNA1337572. All processed count matrices, supplementary datasets and expanded results tables are available on Synapse (Project SynID: syn69978129). Publicly available datasets analyzed in this study can be found on NCBI GEO query. The Human HD Caudate and Putamen snRNA-seq from Lee et al. (30) is available under GEO accession: GSE152058 (https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 8 keywords, 12 MeSH terms, 6 funders, 110 references, 1 RRID.
Cite
This paper
Robbins, A. B., Ranum, P. T., Huerta-Ocampo, I., Kuckyr, M., & Davidson, B. L. (2026). Temporal single-cell atlas of full-length Huntington's disease mouse model defines stage-specific signatures of corticostriatal dysfunction. Molecular neurodegeneration, 21(1), 41. https://
BibTeX
@article{robbins2026temp
author = {Robbins, Ashley B and Ranum, Paul T and Huerta-Ocampo, Icnelia and Kuckyr, Michael and Davidson, Beverly L},
title = {{Temporal single-cell atlas of full-length Huntington's disease mouse model defines stage-specific signatures of corticostriatal dysfunction}},
journal = {Molecular neurodegeneration},
year = {2026},
month = may,
volume = {21},
number = {1},
pages = {41},
publisher = {BMC},
issn = {1750-1326},
doi = {10.1186/
url = {https://
pmid = {42210302},
pmcid = {PMC13440178}
}
RIS
TY - JOUR
AU - Robbins, Ashley B
AU - Ranum, Paul T
AU - Huerta-Ocampo, Icnelia
AU - Kuckyr, Michael
AU - Davidson, Beverly L
TI - Temporal single-cell atlas of full-length Huntington's disease mouse model defines stage-specific signatures of corticostriatal dysfunction
T2 - Molecular neurodegeneration
J2 - Mol Neurodegener
PY - 2026
DA - 2026/
VL - 21
IS - 1
SP - 41
SN - 1750-1326
PB - BMC
DO - 10.1186/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1186/
"type": "article-journal",
"title": "Temporal single-cell atlas of full-length Huntington's disease mouse model defines stage-specific signatures of corticostriatal dysfunction",
"container-title": "Molecular neurodegeneration",
"author": [
{
"family": "Robbins",
"given": "Ashley B"
},
{
"family": "Ranum",
"given": "Paul T"
},
{
"family": "Huerta-Ocampo",
"given": "Icnelia"
},
{
"family": "Kuckyr",
"given": "Michael"
},
{
"family": "Davidson",
"given": "Beverly L"
}
],
"container-title-short":
"volume": "21",
"issue": "1",
"page": "41",
"DOI": "10.1186/
"PMID": "42210302",
"PMCID": "PMC13440178",
"ISSN": "1750-1326",
"publisher": "BMC",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
28
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1186/s13148-026-02082-4 [code]
- DNA methylation profiling in Huntington's disease reveals disease associated changes in the striatum.Journal: Clinical epigeneticsIn common: systems, genetics / omics, other condition, 8 references
- [2] doi:10.1038/s41598-026-54412-4 [code]
- Single-cell transcriptomics and mouse model phenotyping for biomarker screen of peripheral blood in Huntington's disease.Journal: Scientific reportsIn common: NCBI GEO GSE152058, genetics / omics, other condition, mouse, 4 references
- [3] doi:10.1177/18796397261443137 [code]
- Towards AI-driven prediction of &
lt;i& gt;HTT& lt;/ i& gt; CAG size in super-expanded human spiny projection neurons from Huntington disease donors. Journal: Journal of Huntington's diseaseIn common: genetics / omics, other condition, 7 references - [4] doi:10.1038/s41467-026-73305-8 [code]
- Comparative analysis of the cellular landscape in mammalian striatum.Journal: Nature communicationsIn common: SAMtools, NumPy, genetics / omics, mouse, 5 references
- [5] doi:10.1093/bioinformatics/btag592 [code]
- Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.Journal: Bioinformatics (Oxford, England)In common: Subread (featureCounts), STAR, SAMtools, 3 other tools, genetics / omics, other condition, 1 reference
- [6] doi:10.1038/s41586-026-10512-9 [code]
- Astrocyte glucocorticoid receptor signalling restricts neuronal plasticity.Journal: NatureIn common: Subread (featureCounts), STAR, SAMtools, 2 other tools, mouse, 2 references
- [7] doi:10.1038/s44321-026-00459-9
- Anle138b ameliorates pathological phenotypes in mouse and cellular models of Huntington's disease.Journal: EMBO molecular medicineIn common: other condition, mouse, 6 references
- [8] doi:10.1126/sciadv.aed2952 [code]
- Activation of transposable elements is linked to a region- and cell type-specific interferon response in Parkinson's disease.Journal: Science advancesIn common: Subread (featureCounts), STAR, SAMtools, 2 other tools, 2 references
- [9] doi:10.1016/j.xgen.2026.101278 [code]
- Single-cell profiling of DNA methylation in autism spectrum disorder prefrontal cortex reveals distinct regulatory and aging signatures.Journal: Cell genomicsIn common: Subread (featureCounts), STAR, SAMtools, 1 other tool, genetics / omics, 2 references
- [10] doi:10.1038/s41467-026-71432-w [code]
- MeCP2 gene dosage-dependent neurodevelopmentally restricted defects arise by aberrant activation of cell fate-determining bivalent genes.Journal: Nature communicationsIn common: Subread (featureCounts), STAR, SAMtools, 3 other tools, other condition, mouse
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 24 scripts, and 7 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:4420c86713c6f969…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
