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

callPeak question #1

Open
CCCBBG opened this issue Jul 15, 2024 · 2 comments
Open

callPeak question #1

CCCBBG opened this issue Jul 15, 2024 · 2 comments

Comments

@CCCBBG
Copy link

CCCBBG commented Jul 15, 2024

scTail-callPeak -b $bamFile --gtf $gtfFile --cellbarcode $cellbarcodeFile -f $fastaFile --species human --chromoSize $chromosomeSize -o $outputfile --minCount 50 -p 20

[*] Selected device: cpu
Traceback (most recent call last):
File "/home01/chenbg/miniconda3/envs/run_scTail/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 3805, in get_loc
return self._engine.get_loc(casted_key)
File "index.pyx", line 167, in pandas._libs.index.IndexEngine.get_loc
File "index.pyx", line 196, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 7081, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 7089, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'cellbarcode'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home01/chenbg/miniconda3/envs/run_scTail/bin/scTail-callPeak", line 8, in
sys.exit(main())
File "/home01/chenbg/miniconda3/envs/run_scTail/lib/python3.9/site-packages/scTail/bin/callPeak.py", line 142, in main
getPAScluster=GetPAScluster(PASrefpath,generefpath,fasta_file,bam_file,out_dir,n_proc,minCount,maxReadCount,densityFC,InnerDistance,device,chromoSizePath,cellbarcodePath,species)
File "/home01/chenbg/miniconda3/envs/run_scTail/lib/python3.9/site-packages/scTail/utils/getPAS.py", line 31, in init
self.cellbarcode=pd.read_csv(cellbarcodePath,delimiter='\t')['cellbarcode'].values
File "/home01/chenbg/miniconda3/envs/run_scTail/lib/python3.9/site-packages/pandas/core/frame.py", line 4102, in getitem
indexer = self.columns.get_loc(key)
File "/home01/chenbg/miniconda3/envs/run_scTail/lib/python3.9/site-packages/pandas/core/indexes/base.py", line 3812, in get_loc
raise KeyError(key) from err
KeyError: 'cellbarcode'

but I check the barcode.tsv
head -n 5 $cellbarcodeFile
AAACCCAATGAAACACT
AAACCCAATGAAACCAT
AAACCCAATGAAACCCA
AAACCCAATGAAACCCG
AAACCCAATGAAATGAG

what's the matter with my code?
I am looking forward to your reply

@houruiyan
Copy link
Collaborator

Hi,

Thank you very much for your question. I guess that is because you did not add the column name in your barcode file. Could you add the "cellbarcode" as the column name of your barcode file, just looking like the example file in our figshare.

Best regards,
Ruiyan

@CCCBBG
Copy link
Author

CCCBBG commented Jul 16, 2024

Oh,thanks very much !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants