1 <html><body> 2 <style> 3 4 body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13 } 14 15 body { 16 font-size: 13px; 17 padding: 1em; 18 } 19 20 h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23 } 24 25 h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28 } 29 30 h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34 } 35 36 pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39 } 40 41 pre { 42 margin-top: 0.5em; 43 } 44 45 h1, h2, h3, p { 46 font-family: Arial, sans serif; 47 } 48 49 h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51 } 52 53 .toc_element { 54 margin-top: 0.5em; 55 } 56 57 .firstline { 58 margin-left: 2 em; 59 } 60 61 .method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66 } 67 68 .details { 69 font-weight: bold; 70 font-size: 14px; 71 } 72 73 </style> 74 75 <h1><a href="genomics_v1.html">Genomics API</a> . <a href="genomics_v1.references.html">references</a></h1> 76 <h2>Instance Methods</h2> 77 <p class="toc_element"> 78 <code><a href="genomics_v1.references.bases.html">bases()</a></code> 79 </p> 80 <p class="firstline">Returns the bases Resource.</p> 81 82 <p class="toc_element"> 83 <code><a href="#get">get(referenceId, x__xgafv=None)</a></code></p> 84 <p class="firstline">Gets a reference.</p> 85 <p class="toc_element"> 86 <code><a href="#search">search(body, x__xgafv=None)</a></code></p> 87 <p class="firstline">Searches for references which match the given criteria.</p> 88 <p class="toc_element"> 89 <code><a href="#search_next">search_next(previous_request, previous_response)</a></code></p> 90 <p class="firstline">Retrieves the next page of results.</p> 91 <h3>Method Details</h3> 92 <div class="method"> 93 <code class="details" id="get">get(referenceId, x__xgafv=None)</code> 94 <pre>Gets a reference. 95 96 For the definitions of references and other genomics resources, see 97 [Fundamentals of Google 98 Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) 99 100 Implements 101 [GlobalAllianceApi.getReference](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L158). 102 103 Args: 104 referenceId: string, The ID of the reference. (required) 105 x__xgafv: string, V1 error format. 106 Allowed values 107 1 - v1 error format 108 2 - v2 error format 109 110 Returns: 111 An object of the form: 112 113 { # A reference is a canonical assembled DNA sequence, intended to act as a 114 # reference coordinate space for other genomic annotations. A single reference 115 # might represent the human chromosome 1 or mitochandrial DNA, for instance. A 116 # reference belongs to one or more reference sets. 117 # 118 # For more genomics resource definitions, see [Fundamentals of Google 119 # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) 120 "name": "A String", # The name of this reference, for example `22`. 121 "sourceUri": "A String", # The URI from which the sequence was obtained. Typically specifies a FASTA 122 # format file. 123 "sourceAccessions": [ # All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally 124 # with a version number, for example `GCF_000001405.26`. 125 "A String", 126 ], 127 "length": "A String", # The length of this reference's sequence. 128 "ncbiTaxonId": 42, # ID from http://www.ncbi.nlm.nih.gov/taxonomy. For example, 9606 for human. 129 "id": "A String", # The server-generated reference ID, unique across all references. 130 "md5checksum": "A String", # MD5 of the upper-case sequence excluding all whitespace characters (this 131 # is equivalent to SQ:M5 in SAM). This value is represented in lower case 132 # hexadecimal format. 133 }</pre> 134 </div> 135 136 <div class="method"> 137 <code class="details" id="search">search(body, x__xgafv=None)</code> 138 <pre>Searches for references which match the given criteria. 139 140 For the definitions of references and other genomics resources, see 141 [Fundamentals of Google 142 Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) 143 144 Implements 145 [GlobalAllianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L146). 146 147 Args: 148 body: object, The request body. (required) 149 The object takes the form of: 150 151 { 152 "md5checksums": [ # If present, return references for which the 153 # md5checksum matches exactly. 154 "A String", 155 ], 156 "pageToken": "A String", # The continuation token, which is used to page through large result sets. 157 # To get the next page of results, set this parameter to the value of 158 # `nextPageToken` from the previous response. 159 "referenceSetId": "A String", # If present, return only references which belong to this reference set. 160 "accessions": [ # If present, return references for which a prefix of any of 161 # sourceAccessions match 162 # any of these strings. Accession numbers typically have a main number and a 163 # version, for example `GCF_000001405.26`. 164 "A String", 165 ], 166 "pageSize": 42, # The maximum number of results to return in a single page. If unspecified, 167 # defaults to 1024. The maximum value is 4096. 168 } 169 170 x__xgafv: string, V1 error format. 171 Allowed values 172 1 - v1 error format 173 2 - v2 error format 174 175 Returns: 176 An object of the form: 177 178 { 179 "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. 180 # Provide this value in a subsequent request to return the next page of 181 # results. This field will be empty if there aren't any additional results. 182 "references": [ # The matching references. 183 { # A reference is a canonical assembled DNA sequence, intended to act as a 184 # reference coordinate space for other genomic annotations. A single reference 185 # might represent the human chromosome 1 or mitochandrial DNA, for instance. A 186 # reference belongs to one or more reference sets. 187 # 188 # For more genomics resource definitions, see [Fundamentals of Google 189 # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) 190 "name": "A String", # The name of this reference, for example `22`. 191 "sourceUri": "A String", # The URI from which the sequence was obtained. Typically specifies a FASTA 192 # format file. 193 "sourceAccessions": [ # All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally 194 # with a version number, for example `GCF_000001405.26`. 195 "A String", 196 ], 197 "length": "A String", # The length of this reference's sequence. 198 "ncbiTaxonId": 42, # ID from http://www.ncbi.nlm.nih.gov/taxonomy. For example, 9606 for human. 199 "id": "A String", # The server-generated reference ID, unique across all references. 200 "md5checksum": "A String", # MD5 of the upper-case sequence excluding all whitespace characters (this 201 # is equivalent to SQ:M5 in SAM). This value is represented in lower case 202 # hexadecimal format. 203 }, 204 ], 205 }</pre> 206 </div> 207 208 <div class="method"> 209 <code class="details" id="search_next">search_next(previous_request, previous_response)</code> 210 <pre>Retrieves the next page of results. 211 212 Args: 213 previous_request: The request for the previous page. (required) 214 previous_response: The response from the request for the previous page. (required) 215 216 Returns: 217 A request object that you can call 'execute()' on to request the next 218 page. Returns None if there are no more items in the collection. 219 </pre> 220 </div> 221 222 </body></html>