Skip to content

sam-xlate bed format /hg38 / gencode #4

@darked89

Description

@darked89

Hello,

i have tried:

java -jar ./ubu-1.2b-SNAPSHOT-jar-with-dependencies.jar sam-xlate \
--bed gencode.v31.annotation.no_head.bed \
--in test.hg38genome.bam \
--out test.hg38genome.bam

I am getting following error:

<snip>
Skipping isoform header order determination
Building read index
Exception in thread "main" java.lang.NumberFormatException: For input string: "transcript_id"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at java.lang.Integer.parseInt(Integer.java:615)
	at edu.unc.bioinf.ubu.sam.IsoformIndex.getExonCoordinates(IsoformIndex.java:49)
	at edu.unc.bioinf.ubu.sam.IsoformIndex.buildReadToIsoformIndex(IsoformIndex.java:93)
	at edu.unc.bioinf.ubu.sam.GenomeToTranscriptome.run(GenomeToTranscriptome.java:70)
	at edu.unc.bioinf.ubu.Ubu.run(Ubu.java:42)
	at edu.unc.bioinf.ubu.Ubu.main(Ubu.java:91)

My java version:

java version "1.8.0_212"

It seems that converting the gencode GTF with awk/bedops:

awk '{ if ($0 ~ "transcript_id") print $0; else print $0" transcript_id \"\";"; }' gencode.v31.annotation.no_head.gtf  | gtf2bed - > \
gencode.v31.annotation.no_head.bed

does not produce BED format resembling one provided with ubu:

ubu/src/test/java/edu/unc/bioinf/ubu/sam/testdata/unc_hg19.bed

Any ideas how to convert gencode.v31 for hg38 into ubu-compatible BED?

Many thanks for your help in advance.

Darek Kedra

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