Skip to content

[main_samview] specifies an unknown reference name. Continue anyway #4

@tomoosting

Description

@tomoosting

Hi I'm getting the following error when trying to run ERDS

When running /erds_pipeline.pl I get the following error message:
[main_samview] region ":-9098-90901" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-27703-72296" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-20895-79104" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-69505-30494" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-26623-73376" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-71501-28498" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-85634-14365" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-63919-36080" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-19113-80886" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-61066-38933" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-93997-6002" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-21534-78465" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-33254-66745" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-20891-79108" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-56495-43504" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-55683-44316" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-34919-65080" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-25443-74556" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-72529-27470" specifies an unknown reference name. Continue anyway.
[main_samview] region ":-7985-92014" specifies an unknown reference name. Continue anyway.
no enough reads

The assembly I'm using refers to the scaffolds in various ways i.e. LG1 to LG25 and scaffold_1223 etc..
From looking at the Perl script I think the error originates around line 309 which contains:
$samtools view -q 10 $bam_file $chr_ran:$start_ran-$end_ran|
it looks like no value gets allocated to $chr_ran which might have something to do with how it expects the scaffold/chromosome to be indicated.
Does the script expect the scaffolds of the assembly to be numbered from 1 to how many there are?
If so, is there a way to make the script run with "unconventional" scaffold names?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions