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

Find specimens with cryo-preserved tissue #2

Open
ekrimmel opened this issue Mar 26, 2020 · 3 comments
Open

Find specimens with cryo-preserved tissue #2

ekrimmel opened this issue Mar 26, 2020 · 3 comments
Labels

Comments

@ekrimmel
Copy link
Collaborator

What would you like to be able to do?
From Deb: Hi All, getting close to a possible useful search to investigate if we have specimens -- for which there could be cryo-preserved tissue for study. These three genera in the query are ones of interest for corona virus at the moment. BUT, it's not yet really known what the vector/s is/are. And so these are only preliminary -- and could help researchers find tissue samples of interest. Next, we need to add to the query, or use R likely better, to look at what's in dwc:preparations (because "alcohol" isn't going to be what's needed by the researchers).

https://search.idigbio.org/v2/search/records/?rq={"genus":["manis","rhinolophus","paguma"],"data.dwc:preparations":{"type":"exists"}}

returns 14570 records.

A more fine-grained approach would include these species: Manis culionensis, M. pentadactyla M. javanica Manis crassicaudata. Paguma larvata, and the Genus Rhinolophus.

We would need to look in the dwc:preparations and possibly other fields for anything indicating cryopreserved tissue exists.

What problems are you having?
Need to figure out how to filter data in dwc:preparations.

Do you have any ideas for technical solutions?

@ekrimmel
Copy link
Collaborator Author

My initial start:

#load libraries
library(ridigbio)
library(tidyverse)

#search for records within genera of interest
records <- idig_search(rq = list(genus = c("manis","rhinolophus","paguma")),
                       fields = c("uuid", "recordset", "institutioncode", "data.dwc:preparations"))

#list distinct values for preparation field
distinctPrep <- records %>% 
  group_by(`data.dwc:preparations`) %>% 
  tally() %>% 
  arrange(desc(n))

#save as csv
write_csv(distinctPrep, "distinctPrep.csv")

@ekrimmel
Copy link
Collaborator Author

see draft use case: find-tissue-samples.md

@ekrimmel
Copy link
Collaborator Author

see also draft .Rmd in solution directory

mgaynor1 added a commit that referenced this issue Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant