Skip to content

Commit

Permalink
adds heart_10k example
Browse files Browse the repository at this point in the history
  • Loading branch information
mfansler committed Jul 2, 2021
1 parent 0e65161 commit c626bd0
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,6 @@ rule sce_txs_to_genes:
output:
sce="data/sce/{dataset}.genes.Rds"
resources:
mem_mb=8000
mem_mb=16000
script:
"scripts/sce_txs_to_genes.R"
17 changes: 17 additions & 0 deletions examples/heart_10k_v3_fastq/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
sample_file:
"examples/heart_10k_v3_fastq/sample_sheet.csv"

annotation_file:
"examples/heart_10k_v3_fastq/annots.csv"

bx_whitelist:
"extdata/bxs/3M-february-2018.txt"

final_output_file:
"data/sce/heart_10k_v3_fastq.utrome.txs.Rds"

tech:
"10xv3"

strand:
"--fr-stranded"
15 changes: 15 additions & 0 deletions examples/heart_10k_v3_fastq/download.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

wget -O tmp.tar https://cg.10xgenomics.com/samples/cell-exp/3.0.0/heart_10k_v3/heart_10k_v3_fastqs.tar \
&& tar -xf tmp.tar \
&& mv heart_10k_v3_fastqs fastq \
&& rm tmp.tar

## Download analysis data and make annots.csv
wget -O tmp.tar.gz https://cf.10xgenomics.com/samples/cell-exp/3.0.0/heart_10k_v3/heart_10k_v3_analysis.tar.gz \
&& tar -xvzf tmp.tar.gz \
&& rm tmp.tar.gz

join -t',' analysis/clustering/graphclust/clusters.csv analysis/tsne/2_components/projection.csv | \
sed -E 's/([ACGT]{16})-1/heart_10k_v3_fastq_\1/' | \
sed '1 s/^.*$/cell_id,cluster,tsne_1,tsne_2/' > annots.csv
2 changes: 2 additions & 0 deletions examples/heart_10k_v3_fastq/sample_sheet.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sample_id,file_type,files
heart_10k_v3_fastq,fastq,examples/heart_10k_v3_fastq/fastq/heart_10k_v3_S1_L001_R1_001.fastq.gz;examples/heart_10k_v3_fastq/fastq/heart_10k_v3_S1_L001_R2_001.fastq.gz;examples/heart_10k_v3_fastq/fastq/heart_10k_v3_S1_L002_R1_001.fastq.gz;examples/heart_10k_v3_fastq/fastq/heart_10k_v3_S1_L002_R2_001.fastq.gz
2 changes: 1 addition & 1 deletion examples/neuron_10k_v3_fastq/download.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env #!/usr/bin/env bash
#!/usr/bin/env bash

wget -O tmp.tar https://cg.10xgenomics.com/samples/cell-exp/3.0.0/neuron_10k_v3/neuron_10k_v3_fastqs.tar \
&& tar -xf tmp.tar \
Expand Down

0 comments on commit c626bd0

Please sign in to comment.