Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database for all patients #1

Closed
beeCwright opened this issue Mar 29, 2017 · 3 comments
Closed

database for all patients #1

beeCwright opened this issue Mar 29, 2017 · 3 comments

Comments

@beeCwright
Copy link

running qu.all() shows all the id's for 97 patients, but the LIDC dataset has over 1000 patients. Is there an easy way to incorporate the others?

@notmatthancock
Copy link
Owner

Are you referring to the first example in the README where

qu = pl.query(pl.Scan).filter(pl.Scan.slice_thickness <= 1)
print(qu.count())
# => 97

? In this case, we are querying for all Scan objects where the slice thickness attribute is less than 1 millimeter. If you want to query for all Scan objects, you would leave off the filter, i.e.,

qu = pl.query(pl.Scan)
print(qu.count())
# => 1018

Each scan object has a patient_id attribute (which is not necessarily unique since some patients had multiple scans). You can query for a specific patient id by executing (for example):

scan = pl.query(pl.Scan).filter(pl.Scan.patient_id == 'LIDC-IDRI-0025').first()
print(scan.patient_id)
# => LIDC-IDRI-0025

@beeCwright
Copy link
Author

ahhhhh wow. yep. sorry.

@notmatthancock
Copy link
Owner

no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants