Skip to content

onehic.py error : no such file png/info.txt #44

Description

@pdru

Hello, I like very well AutoHiC with 3d-dna, but I want to improve your assembly pipeline using YAHS but I have some problems.

I already try to run onehic with peanut example to test the pipeline that seems to work well on my computer

python3.9 onehic.py -hic test/peanut.hic -asy test/peanut.assembly -autohic $PWD -p models/chr_model.pth -t 40 -out test/onehic_2024_11_18 2>&1 |tee onehic_test.$(date +%F).stdout

So with my data, I am trying to run onehic.py after yahs mapping : mapping from yahs has been done with Arima_pipeline and convert to .hic following onehic protocol, as well the genome converted from fasta to assembly.

tree onehic_Bs_trim/

              
 onehic_Bs_trim/
├── assembly_after_yahs.assembly
└── mapped_hic_after_yahs.hic
0 directories, 2 files

So I launch the pipeline :

python3.9 onehic.py -hic onehic_Bs_trim/mapped_hic_after_yahs.hic -asy onehic_Bs_trim/assembly_after_yahs.assembly -autohic /scratch1/genomes/dru/AutoHiC-1.3.3 -p models/chr_model.pth -out /scratch1/genomes/dru/AutoHiC-1.3.3/onehic_Bs_trim/results_onehic 2>&1 |tee onehic_Bs_trim/onehic.$(date +%F).log

after launching this command (following the protocol...), this command stops with an error :

a │ ) │ │
│ │ ) │ │
│ │ ) │ │
│ │ model_cfg = '//scratch1/genomes/dru/AutoHiC-1.3.3/src/models/cfgs/error_model.py' │ │
│ │ out_path = 'onehic_Bs_trim/results_onehic' │ │
│ │ pretrained_model = 'models/chr_model.pth' │ │
│ │ score = 0.9 │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
FileNotFoundError: [Errno 2] No such file or directory: 'onehic_Bs_trim/results_onehic/png/info.txt'

I obtain

tree onehic_Bs_trim/

onehic_Bs_trim/
├── assembly_after_yahs.assembly
├── mapped_hic_after_yahs.hic
├── onehic.2024-11-22.log
└── results_onehic
    └── png
        ├── 1000
        ├── 10000
        ├── 100000
        ├── 1000000
        ├── 25000
        ├── 250000
        ├── 2500000
        ├── 5000
        ├── 50000
        └── 500000

12 directories, 3 files

Do you have an idea of what's wrong with these data ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions