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

unable to run NanoSplicer.py #5

Open
anshulbudhraja opened this issue Jun 19, 2023 · 1 comment
Open

unable to run NanoSplicer.py #5

anshulbudhraja opened this issue Jun 19, 2023 · 1 comment

Comments

@anshulbudhraja
Copy link

The code runs very well in the JWR_checker.py and JWR_subset.py, and produces non-empty .h5 and .h5.csv file with more than 100,000 JWRs but it seems that file is empty for NanoSplicer or the output of NanoSplicer is empty? (I did give the full path to the .h5 output of JWR_subset)

The error from NanoSplicer.py :

running process
^M0it [00:00, ?it/s]Traceback (most recent call last):
  File "/home/anshul/softwares/NanoSplicer/bin/NanoSplicer.py", line 1441, in <module>
    main()
  File "/home/anshul/softwares/NanoSplicer/bin/NanoSplicer.py", line 425, in main
    pd.concat([x.result() for x in futures]).to_csv(error_fn)
  File "/home/anshul/miniconda3/envs/NanoSplicer/lib/python3.7/site-packages/pandas/util/[decorators.py](http://decorators.py/)", line 311, in wrapper
    return func(*args, **kwargs)
  File "/home/anshul/miniconda3/envs/NanoSplicer/lib/python3.7/site-packages/pandas/core/reshape/concat.py", line 304, in concat
    sort=sort,
  File "/home/anshul/miniconda3/envs/NanoSplicer/lib/python3.7/site-packages/pandas/core/reshape/concat.py", line 351, in init
    raise ValueError("No objects to concatenate")
ValueError: No objects to concatenate
^M0it [00:00, ?it/s]
Command exited with non-zero status 1

The command used :

python3 /home/anshul/softwares/NanoSplicer/bin/NanoSplicer.py -i /scratch/anshul/NanoSplicer_trials/Genome_mapped/Stringtie2-noRef.annotated_code_u_N100_mapped_sorted.bam -f /scratch/anshul/NanoSplicer_trials/JWR_subset/defaultVal/ -r /home/refs/human/dna/hg38_chrIS.fa -o /scratch/anshul/NanoSplicer_trials/NanoSplice/Stringtie2-noRef.annotated_code_u_N100_mapped --threads 16 /scratch/anshul/NanoSplicer_trials/JWR_subset/defaultVal/Stringtie2-noRef.annotated_code_u_N100_mapped_jwrSubset.h5

The output of JWR_subset:

$ wc -l /scratch/anshul/NanoSplicer_trials/JWR_subset/defaultVal/Stringtie2-noRef.annotated_code_u_N100_mapped_jwrSubset.h5.csv
124379 /scratch/anshul/NanoSplicer_trials/JWR_subset/defaultVal/Stringtie2-noRef.annotated_code_u_N100_mapped_jwrSubset.h5.csv
@youyupei
Copy link
Member

youyupei commented Nov 6, 2023

Hi @anshulbudhraja,

Thanks for being interested in NanoSplicer and sorry for the late late reply. Your error message usually means that the path you provided by -f did NOT contain any .fast5 files (note that they have to be suffixed by .fast5), or the fast5 files did not match the reads used in the previous steps. You may double-check the files in /scratch/anshul/NanoSplicer_trials/JWR_subset/defaultVal/, and feel free to let me know if it is not the case.

Regards,
Yupei

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