Module: EnsemblREST::GA4GH

Defined in:
lib/ensemblrest/variationga4gh.rb

Class Method Summary collapse

Class Method Details

.gacallSet(options = {}) ⇒ JSON

Return a list of sets of genotype calls for specific samples in GA4GH format

Parameters:

Returns:

  • a list of sets of genotype calls for specific samples



21
22
23
# File 'lib/ensemblrest/variationga4gh.rb', line 21

def gacallSet(options = {})
  return EnsemblREST.post("ga4gh/callsets/search", {}, {format: 'json'}.merge(options))
end

.gavariants(start, stop, referenceName, variantSetIds, options = {}) ⇒ JSON

Return variant call information in GA4GH format for a region on a reference sequence

Parameters:

  • Start position of region (zero-based, inclusive)

  • End position of region (zero-based, exclusive)

  • Reference sequence name

  • Return variant data for specific variantSets

  • (defaults to: {})

    Optional arguments for the service please goto http://rest.ensembl.org/documentation/info/gavariants

Returns:

  • variant call information in GA4GH format



33
34
35
# File 'lib/ensemblrest/variationga4gh.rb', line 33

def gavariants(start, stop, referenceName, variantSetIds, options = {})
  return EnsemblREST.post("ga4gh/variants/search", {"variantSetIds" => variantSetIds, "referenceName" => referenceName,"start" => start ,"end" => stop}, {format: 'json'}.merge(options))
end

.gavariantset(options = {}) ⇒ JSON

Return a list of variant sets in GA4GH format

Parameters:

Returns:

  • a list of variant sets in GA4GH format



41
42
43
# File 'lib/ensemblrest/variationga4gh.rb', line 41

def gavariantset(options = {})
  return EnsemblREST.post("ga4gh/variantsets/search", {}, {format: 'json'}.merge(options))
end