Skip to content
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

Vartrix #498

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
10k_PBMC_Multiome_nextgem_Chromium_X_atac_possorted_bam.bam
10k_PBMC_Multiome_nextgem_Chromium_X_atac_possorted_bam.bam.bai
.README.md.swp
Binary file added data/ChrM.fa.gz
Binary file not shown.
Binary file added data/ChrM_subset.bam
Binary file not shown.
Binary file added data/ChrM_subset.bam.bai
Binary file not shown.
Binary file added data/ChrM_testData_R1_001.fastq.gz
Binary file not shown.
Binary file added data/ChrM_testData_R2_001.fastq.gz
Binary file not shown.
72 changes: 72 additions & 0 deletions data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# nf-core/mitotags test files

This is the minimal test files to test the nf-core/mitotags package.

## input

ChrM_testData_R1_001.fastq.gz

```
bedtools bamtofastq -i ChrM_subset.bam -fq ChrM_testData_R1_001.fastq -fq2 ChrM_testData_R2_001.fastq
gzip *.fastq
```

## bam

ChrM_subset.bam


```
wget https://s3-us-west-2.amazonaws.com/10x.files/samples/cell-arc/2.0.0/10k_PBMC_Multiome_nextgem_Chromium_X/10k_PBMC_Multiome_nextgem_Chromium_X_atac_possorted_bam.bam
wget https://s3-us-west-2.amazonaws.com/10x.files/samples/cell-arc/2.0.0/10k_PBMC_Multiome_nextgem_Chromium_X/10k_PBMC_Multiome_nextgem_Chromium_X_atac_possorted_bam.bam.bai
samtools view 10k_PBMC_Multiome_nextgem_Chromium_X_atac_possorted_bam.bam chrM:15000-22000 -b > Chrm_subset.bam
## find the 300 highest chrM read count barcodes and split on them.
gunzip barcodes.tsv
samtools view -h Chrm_subset.bam | head -n 3000 | grep "^@" > ChrM_subset.sam
samtools view Chrm_subset.bam | grep -f barcodes.tsv >> ChrM_subset.sam
samtools view ChrM_subset.sam -b > ChrM_subset.bam
gzip barcodes.tsv
rm Chrm_subset.bam
rm ChrM_subset.sam

```

## bai

ChrM_subset.bam.bai

```
samtools index ChrM_subset.bam
```

## barcodes

barcodes.tsv.gz

```
samtools view Chrm_subset.bam | grep -o "CB:Z:[AGCT]*-1" > barcodes_total.txt
```

R script to get the top 300 barcodes:

```
dat = scan( 'barcodes_total.txt', what=character())
write ( names( sort(table(dat), decreasing=TRUE)[1:300]), file="barcodes.tsv" )
```

Or on the command line (slow!):

```
sort barcodes_total.txt | uniq -c > barcodes_unique.txt
sort -k 2n barcodes_unique.txt| head -n 300 | cut -f1 > barcodes.tsv
```

Clean up

```
gzip barcodes.tsv
rm barcodes_total.txt
```

## genome
ChrM.fa.gz
300 changes: 300 additions & 0 deletions data/barcodes.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,300 @@
CB:Z:TGTGTTAAGTAGCGGG-1
CB:Z:TAGTTGTCAAACCCTA-1
CB:Z:CGGCAATGTCAAAGGG-1
CB:Z:GTCGAGGAGTGAACGA-1
CB:Z:CGAGCGAAGTCATTAG-1
CB:Z:GAAGGCTAGGCAAGTA-1
CB:Z:ATTCAACCAATCGCAC-1
CB:Z:TGTTGTTTCACGAATC-1
CB:Z:GAACCAGCACCTCAGG-1
CB:Z:GATTTGCAGTAGCGCC-1
CB:Z:CCTAAATCATAAGGAC-1
CB:Z:TCTGGCTTCTCGACCT-1
CB:Z:TTAAGGACACCAGGTT-1
CB:Z:TGGTTAATCAGCTAAC-1
CB:Z:GATTGATGTGAGCACT-1
CB:Z:GACGCAACACGGTACT-1
CB:Z:GTTTGCTGTGCTCCGT-1
CB:Z:GTAGTTTCATTGGGAG-1
CB:Z:ACCTGGTCAATTAAGG-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