Dear Developers,
What methods can I use besides the ones documented in https://github.com/yannickwurm/sequenceserver/blob/master/lib/sequenceserver/links.rb ?
I would like to link to a jbrowse instance, for this I would like to specify the start and end position on the target (hit)
using a constructor like this:
info = self
url = “http://etc.ect#[info]”
I could get below information. But I cannot access the value underlying these parameters. I would like to do something like this:
def jbrowse
contig_id = “Asparagus.V2.0”
contig_pre = “AsOf_v2.0_scaffold”
r_start = self.some.method.to.get.to.hsp.sstart
r_end = self.some.method.to.get.to.hsp.send
contig = encode self.accession
hit_database = whichdb
rest = encode self
url = “http://192.0.0.10/jbrowse/?data=#{contig_id}” \
“%2Fjson%2F&tracks=DNA&highlight=&” \
“loc=#{contig_pre}#{contig}%3A#{r_start}…#{r_end}”
{
:order => 2,
:title => ‘jbrowse’,
:url => url,
:icon => ‘fa-external-link’
}
end
How can I get an overview of the methods available for accessing the variables stored in this instance?
Kind regards,
Thomas
URI::InvalidURIError - bad URI(is not URI?): http://192.0.0.10/jbrowse/?data=Asparagus.V2.0%2Fjson%2F&tracks=DNA&highlight=&loc=AsOf_v2.0_scaffold3%3A
[#<struct SequenceServer::BLAST::HSP::BLASTN hit=#<struct SequenceServer::BLAST::Hit query=#<struct SequenceServer::BLAST::Query report=#<SequenceServer::BLAST::Report:0x00000001be2548 @search_id=“sequenceserver_blast_result20150306-24194-15x7j87”,
@querydb=[#<struct SequenceServer::Database name="/root/blast_database/Agabi_varbisH97v3.1.fa",
title=“Agabi_varbisH97v3.1.fa”,
type=“nucleotide”,
nsequences=“13”,
ncharacters=“30417844”,
updated_on=“Feb 4,
2015 1:57 PM\n”>],
@queries=[#],
@program=“blastn”,
@program_version=“BLASTN 2.2.30+”,
@params={:matrix=>[“10”,
“2”,
“-3”,
“5”,
“2”,
“L;m;”],
:evalue=>nil,
:gapopen=>nil,
:gapextend=>nil,
:filters=>nil},
@stats={:nsequences=>“13”,
:ncharacters=>“30417844”,
:hsp_length=>“24”,
:search_space=>“3406763584”,
:kappa=>“0.41”,
:labmda=>“0.625”,
:entropy=>“0.78”}>,
number=1,
def=“Query_1”,
length=136,
hits=[#,
#<struct SequenceServer::BLAST::Hit query=#,