Skip to content

Troubles while creating snap file with bam #253

@HieuNg1598

Description

@HieuNg1598

I am trying to create snap file using possorted.bam but I have got this problem during dealing with header sam file.
Do you know what is the problem ?
ERROR:
cat <( cat possorted.header.sam )\

<( samtools view possorted_bam.bam | awk '{for (i=12; i<=NF; ++i) { if ($i ~ "^CB:Z:"){ td[substr($i,1,2)] = substr($i,6,length($i)-5); } }; printf "%s:%s\n", td["CB"], $0 }' )
| samtools view -bS -> tbi_possorted.snap.bam
cat: /dev/fd/63/dev/fd/62: Not a directory
[main_samview] fail to read the header from "-".

Hope to hear from you soon

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