How to use samtools tview goto with long reference sequence name
3
1
Entering edit mode
6.0 years ago
quokka ▴ 10

I'm sorry if the answer to this is blatantly obvious...

I'm trying to jump to a sequence region in samtools tview with the (g)oto command. The problem is I can't enter the full command due to size restrictions of the input section.

I want to enter:

Goto: d62ff96e-317e-46d3-92b5-f5a4b329694f:3598

but I can only enter:

Goto: d62ff96e-317e-46d3-92b5-f5a4b329694f:359

Any tips?

samtools tview reference goto • 3.0k views
ADD COMMENT
0
Entering edit mode
ADD COMMENT
0
Entering edit mode

Ah. Excellent. Not so obvious then. Thanks!

ADD REPLY
0
Entering edit mode

Hi, If this was the answer to your question please accept it as a right answer.

enter image description here

ADD REPLY
0
Entering edit mode
6.0 years ago

A shameless plug... If you use samtools tview you may be interested in ASCIIGenome

ADD COMMENT
0
Entering edit mode
6.0 years ago

Sadly this text entry box is too narrow for unfortunate contigs named via UUIDs. See PR samtools/samtools#968.

In the meantime, there is a workaround to jump to the position you're after using a vanilla samtools tview build: the goto command accepts =1234 to jump to a position on the current chromosome. So you can jump to where you want in two hops:

  1. Goto d62ff96e-317e-46d3-92b5-f5a4b329694f which takes you to the start of that contig;
  2. Goto =3598 to jump to the desired position.
ADD COMMENT

Login before adding your answer.

Traffic: 1766 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6