Bases: BaseExporter
Exporter for Annotations curations.
| Attributes: |
|
|---|
get_sra(anno, fields)
¶
Retrieve SRA IDs from the annotations if they exist.
| Parameters: |
|
|---|
| Returns: |
|
|---|
save(anno, fmt, file, citation_config, metadata=None, **kwargs)
¶
Save annotations curation to json. Keys are terms and values are positively annotated indices.
| Parameters: |
|
|---|
to_csv(anno, file, citation_config, metadata=None, **kwargs)
¶
Save annotations to csv.
| Parameters: |
|
|---|
to_json(anno, file, citation_config, metadata=None)
¶
Save annotations curation to json. Keys are terms and values are positively annotated indices.
| Parameters: |
|
|---|
to_numpy(anno)
¶
Returns the annotation data as a numpy array.
to_parquet(anno, file, citation_config, metadata=None, **kwargs)
¶
Save annotations to parquet.
| Parameters: |
|
|---|
to_tsv(anno, file, citation_config, metadata=None, **kwargs)
¶
Save annotations to tsv.
| Parameters: |
|
|---|