| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
#ifndef ENSGENE_H |
| 30 |
#define ENSGENE_H |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
#include "ensfeature.h" |
| 37 |
|
| 38 |
AJ_BEGIN_DECLS |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
EnsPGene ensGeneNewCpy(const EnsPGene gene); |
| 68 |
|
| 69 |
EnsPGene ensGeneNewIni(EnsPGeneadaptor ga, |
| 70 |
ajuint identifier, |
| 71 |
EnsPFeature feature, |
| 72 |
EnsPDatabaseentry displaydbe, |
| 73 |
AjPStr description, |
| 74 |
AjPStr source, |
| 75 |
AjPStr biotype, |
| 76 |
EnsEGeneStatus status, |
| 77 |
AjBool current, |
| 78 |
ajuint cantrcid, |
| 79 |
AjPStr canann, |
| 80 |
AjPStr stableid, |
| 81 |
ajuint version, |
| 82 |
AjPStr cdate, |
| 83 |
AjPStr mdate, |
| 84 |
AjPList transcripts); |
| 85 |
|
| 86 |
EnsPGene ensGeneNewRef(EnsPGene gene); |
| 87 |
|
| 88 |
void ensGeneDel(EnsPGene *Pgene); |
| 89 |
|
| 90 |
EnsPGeneadaptor ensGeneGetAdaptor(const EnsPGene gene); |
| 91 |
|
| 92 |
AjPStr ensGeneGetBiotype(const EnsPGene gene); |
| 93 |
|
| 94 |
AjPStr ensGeneGetCanonicalannotation(const EnsPGene gene); |
| 95 |
|
| 96 |
ajuint ensGeneGetCanonicaltranscriptidentifier(const EnsPGene gene); |
| 97 |
|
| 98 |
AjBool ensGeneGetCurrent(const EnsPGene gene); |
| 99 |
|
| 100 |
AjPStr ensGeneGetDateCreation(const EnsPGene gene); |
| 101 |
|
| 102 |
AjPStr ensGeneGetDateModification(const EnsPGene gene); |
| 103 |
|
| 104 |
AjPStr ensGeneGetDescription(const EnsPGene gene); |
| 105 |
|
| 106 |
EnsPDatabaseentry ensGeneGetDisplayreference(const EnsPGene gene); |
| 107 |
|
| 108 |
EnsPFeature ensGeneGetFeature(const EnsPGene gene); |
| 109 |
|
| 110 |
ajuint ensGeneGetIdentifier(const EnsPGene gene); |
| 111 |
|
| 112 |
AjPStr ensGeneGetSource(const EnsPGene gene); |
| 113 |
|
| 114 |
AjPStr ensGeneGetStableidentifier(const EnsPGene gene); |
| 115 |
|
| 116 |
EnsEGeneStatus ensGeneGetStatus(const EnsPGene gene); |
| 117 |
|
| 118 |
ajuint ensGeneGetVersion(const EnsPGene gene); |
| 119 |
|
| 120 |
const AjPList ensGeneLoadAttributes(EnsPGene gene); |
| 121 |
|
| 122 |
const AjPList ensGeneLoadDatabaseentries(EnsPGene gene); |
| 123 |
|
| 124 |
const AjPList ensGeneLoadTranscripts(EnsPGene gene); |
| 125 |
|
| 126 |
AjBool ensGeneSetAdaptor(EnsPGene gene, EnsPGeneadaptor ga); |
| 127 |
|
| 128 |
AjBool ensGeneSetBiotype(EnsPGene gene, AjPStr biotype); |
| 129 |
|
| 130 |
AjBool ensGeneSetCanonicalannotation(EnsPGene gene, AjPStr canann); |
| 131 |
|
| 132 |
AjBool ensGeneSetCanonicaltranscriptidentifier(EnsPGene gene, ajuint cantrcid); |
| 133 |
|
| 134 |
AjBool ensGeneSetCurrent(EnsPGene gene, AjBool current); |
| 135 |
|
| 136 |
AjBool ensGeneSetDateCreation(EnsPGene gene, AjPStr cdate); |
| 137 |
|
| 138 |
AjBool ensGeneSetDateModification(EnsPGene gene, AjPStr mdate); |
| 139 |
|
| 140 |
AjBool ensGeneSetDescription(EnsPGene gene, AjPStr description); |
| 141 |
|
| 142 |
AjBool ensGeneSetDisplayreference(EnsPGene gene, EnsPDatabaseentry dbe); |
| 143 |
|
| 144 |
AjBool ensGeneSetFeature(EnsPGene gene, EnsPFeature feature); |
| 145 |
|
| 146 |
AjBool ensGeneSetIdentifier(EnsPGene gene, ajuint identifier); |
| 147 |
|
| 148 |
AjBool ensGeneSetSource(EnsPGene gene, AjPStr source); |
| 149 |
|
| 150 |
AjBool ensGeneSetStableidentifier(EnsPGene gene, AjPStr stableid); |
| 151 |
|
| 152 |
AjBool ensGeneSetStatus(EnsPGene gene, EnsEGeneStatus status); |
| 153 |
|
| 154 |
AjBool ensGeneSetVersion(EnsPGene gene, ajuint version); |
| 155 |
|
| 156 |
AjBool ensGeneAddAttribute(EnsPGene gene, EnsPAttribute attribute); |
| 157 |
|
| 158 |
AjBool ensGeneAddDatabaseentry(EnsPGene gene, EnsPDatabaseentry dbe); |
| 159 |
|
| 160 |
AjBool ensGeneAddTranscript(EnsPGene gene, EnsPTranscript transcript); |
| 161 |
|
| 162 |
AjBool ensGeneTrace(const EnsPGene gene, ajuint level); |
| 163 |
|
| 164 |
size_t ensGeneCalculateMemsize(const EnsPGene gene); |
| 165 |
|
| 166 |
AjBool ensGeneCalculateCoordinates(EnsPGene gene); |
| 167 |
|
| 168 |
AjBool ensGeneFetchAllAttributes(EnsPGene gene, |
| 169 |
const AjPStr code, |
| 170 |
AjPList attributes); |
| 171 |
|
| 172 |
AjBool ensGeneFetchAllDatabaseentries(EnsPGene gene, |
| 173 |
const AjPStr name, |
| 174 |
EnsEExternaldatabaseType type, |
| 175 |
AjPList dbes); |
| 176 |
|
| 177 |
AjBool ensGeneFetchAllExons(EnsPGene gene, AjPList exons); |
| 178 |
|
| 179 |
AjBool ensGeneFetchCanonicaltranscript(EnsPGene gene, |
| 180 |
EnsPTranscript *Ptranscript); |
| 181 |
|
| 182 |
AjBool ensGeneFetchDisplayidentifier(const EnsPGene gene, |
| 183 |
AjPStr *Pidentifier); |
| 184 |
|
| 185 |
AjBool ensGeneSimilarity(EnsPGene gene1, EnsPGene gene2); |
| 186 |
|
| 187 |
EnsPGene ensGeneTransfer(EnsPGene gene, EnsPSlice slice); |
| 188 |
|
| 189 |
EnsPGene ensGeneTransform(EnsPGene gene, |
| 190 |
const AjPStr csname, |
| 191 |
const AjPStr csversion); |
| 192 |
|
| 193 |
AjBool ensGeneCheckReference(const EnsPGene gene, AjBool *Presult); |
| 194 |
|
| 195 |
EnsEGeneStatus ensGeneStatusFromStr(const AjPStr status); |
| 196 |
|
| 197 |
const char *ensGeneStatusToChar(EnsEGeneStatus status); |
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
AjBool ensListGeneSortEndAscending(AjPList genes); |
| 202 |
|
| 203 |
AjBool ensListGeneSortEndDescending(AjPList genes); |
| 204 |
|
| 205 |
AjBool ensListGeneSortIdentifierAscending(AjPList genes); |
| 206 |
|
| 207 |
AjBool ensListGeneSortStartAscending(AjPList genes); |
| 208 |
|
| 209 |
AjBool ensListGeneSortStartDescending(AjPList genes); |
| 210 |
|
| 211 |
AjBool ensSequenceAddFeatureGene(AjPSeq seq, |
| 212 |
EnsPGene gene, |
| 213 |
AjPFeature *Pfeature); |
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
EnsPGeneadaptor ensRegistryGetGeneadaptor( |
| 218 |
EnsPDatabaseadaptor dba); |
| 219 |
|
| 220 |
EnsPGeneadaptor ensGeneadaptorNew( |
| 221 |
EnsPDatabaseadaptor dba); |
| 222 |
|
| 223 |
void ensGeneadaptorDel(EnsPGeneadaptor *Pga); |
| 224 |
|
| 225 |
EnsPBaseadaptor ensGeneadaptorGetBaseadaptor( |
| 226 |
EnsPGeneadaptor ga); |
| 227 |
|
| 228 |
EnsPDatabaseadaptor ensGeneadaptorGetDatabaseadaptor( |
| 229 |
EnsPGeneadaptor ga); |
| 230 |
|
| 231 |
EnsPFeatureadaptor ensGeneadaptorGetFeatureadaptor( |
| 232 |
EnsPGeneadaptor ga); |
| 233 |
|
| 234 |
AjBool ensGeneadaptorFetchAll( |
| 235 |
EnsPGeneadaptor ga, |
| 236 |
AjPList genes); |
| 237 |
|
| 238 |
AjBool ensGeneadaptorFetchAllbyBiotype( |
| 239 |
EnsPGeneadaptor ga, |
| 240 |
const AjPStr biotype, |
| 241 |
AjPList genes); |
| 242 |
|
| 243 |
AjBool ensGeneadaptorFetchAllbyDisplaylabel( |
| 244 |
EnsPGeneadaptor ga, |
| 245 |
const AjPStr label, |
| 246 |
AjPList genes); |
| 247 |
|
| 248 |
AjBool ensGeneadaptorFetchAllbyExternaldatabasename( |
| 249 |
EnsPGeneadaptor ga, |
| 250 |
const AjPStr dbname, |
| 251 |
AjPList genes); |
| 252 |
|
| 253 |
AjBool ensGeneadaptorFetchAllbyExternalname( |
| 254 |
EnsPGeneadaptor ga, |
| 255 |
const AjPStr name, |
| 256 |
const AjPStr dbname, |
| 257 |
AjBool override, |
| 258 |
AjPList genes); |
| 259 |
|
| 260 |
AjBool ensGeneadaptorFetchAllbyIdentifiers( |
| 261 |
EnsPGeneadaptor ga, |
| 262 |
AjPTable genes); |
| 263 |
|
| 264 |
AjBool ensGeneadaptorFetchAllbySlice( |
| 265 |
EnsPGeneadaptor ga, |
| 266 |
EnsPSlice slice, |
| 267 |
const AjPStr anname, |
| 268 |
const AjPStr source, |
| 269 |
const AjPStr biotype, |
| 270 |
AjBool loadtranscripts, |
| 271 |
AjPList genes); |
| 272 |
|
| 273 |
AjBool ensGeneadaptorFetchAllbyStableidentifier( |
| 274 |
EnsPGeneadaptor ga, |
| 275 |
const AjPStr stableid, |
| 276 |
AjPList genes); |
| 277 |
|
| 278 |
AjBool ensGeneadaptorFetchByDisplaylabel( |
| 279 |
EnsPGeneadaptor ga, |
| 280 |
const AjPStr label, |
| 281 |
EnsPGene *Pgene); |
| 282 |
|
| 283 |
AjBool ensGeneadaptorFetchByExonidentifier( |
| 284 |
EnsPGeneadaptor ga, |
| 285 |
ajuint identifier, |
| 286 |
EnsPGene *Pgene); |
| 287 |
|
| 288 |
AjBool ensGeneadaptorFetchByExonstableidentifier( |
| 289 |
EnsPGeneadaptor ga, |
| 290 |
const AjPStr stableid, |
| 291 |
EnsPGene *Pgene); |
| 292 |
|
| 293 |
AjBool ensGeneadaptorFetchByIdentifier( |
| 294 |
EnsPGeneadaptor ga, |
| 295 |
ajuint identifier, |
| 296 |
EnsPGene *Pgene); |
| 297 |
|
| 298 |
AjBool ensGeneadaptorFetchByStableidentifier( |
| 299 |
EnsPGeneadaptor ga, |
| 300 |
const AjPStr stableid, |
| 301 |
ajuint version, |
| 302 |
EnsPGene *Pgene); |
| 303 |
|
| 304 |
AjBool ensGeneadaptorFetchByTranscriptidentifier( |
| 305 |
EnsPGeneadaptor ga, |
| 306 |
ajuint identifier, |
| 307 |
EnsPGene *Pgene); |
| 308 |
|
| 309 |
AjBool ensGeneadaptorFetchByTranscriptstableidentifier( |
| 310 |
EnsPGeneadaptor ga, |
| 311 |
const AjPStr stableid, |
| 312 |
EnsPGene *Pgene); |
| 313 |
|
| 314 |
AjBool ensGeneadaptorFetchByTranslationstableidentifier( |
| 315 |
EnsPGeneadaptor ga, |
| 316 |
const AjPStr stableid, |
| 317 |
EnsPGene *Pgene); |
| 318 |
|
| 319 |
AjBool ensGeneadaptorRetrieveAllIdentifiers( |
| 320 |
EnsPGeneadaptor ga, |
| 321 |
AjPList identifiers); |
| 322 |
|
| 323 |
AjBool ensGeneadaptorRetrieveAllStableidentifiers( |
| 324 |
EnsPGeneadaptor ga, |
| 325 |
AjPList stableids); |
| 326 |
|
| 327 |
AjBool ensGeneadaptorCheckReference( |
| 328 |
EnsPGeneadaptor ga, |
| 329 |
const EnsPGene gene, |
| 330 |
AjBool *Presult); |
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
AJ_END_DECLS |
| 340 |
|
| 341 |
#endif |