Skip to content

Getting OrientedPoint annotation together with tomo data #813

Answered by uermel
shahpnmlab asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shahpnmlab,

the easiest way of getting those files is using the AnnotationFile class and a query with multiple conditions. See below for an example:

import json
import numpy as np
import s3fs
from cryoet_data_portal import Client, AnnotationFile
from typing import Tuple

# Run Names
tomo_names = ["TS_032","TS_033","TS_034","TS_035","TS_036",
             "TS_037","TS_038", "TS_039","TS_040","TS_041",
             "TS_042", "TS_043","TS_044","TS_045","TS_046",
             "TS_049", "TS_050","TS_052","TS_054","TS_055",
             "TS_056", "TS_057","TS_058","TS_059","TS_061",
             "TS_079","TS_080", "TS_081","TS_082","TS_083"]

def get_points(run_name: str) -> Tuple[np.ndarray, 

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shahpnmlab
Comment options

@uermel
Comment options

Answer selected by kandarpksk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants