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

Add Results.R script for generating data for Labware 8 #51

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

OlintoYale
Copy link
Contributor

This PR introduces the Results.R script, which extracts and formats sequencing data for Labware 8. The output includes these fields: LIMS_TEST_ID, Run Name, Submission ID, Non-Ambiguous Bases, Nextclade Clade, and Lineage. This script ensures that the necessary data is structured appropriately for integration into Labware 8.

@OlintoYale
Copy link
Contributor Author

First commit of the Results.R script for LawWare 8. Please review.

base_path<-config$paths$covidseq_base

args = commandArgs(trailingOnly=T)
args[1]<-c("UT-VH00770-250214")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be changed for each run?

Comment on lines +32 to +38
# saving results
write.table(results,paste("/Volumes/NGS/Analysis/covidseq/",args[1],"/",args[1],
"FinalResults.txt",sep=""), sep = ',', row.names = F, col.names = T, eol="\r\n", quote = F)

write.table(results,paste("/Volumes/NGS/Analysis/covidseq/",args[1],"/",args[1],
"FinalResults.csv",sep=""), sep = ',', row.names = F, col.names = T, eol="\r\n", quote = F)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are there two files?

library("data.table");library("dplyr");library("utils");
library("lubridate");find("read.table");library("readr");

config<-read_yaml("config.yml")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we going to be editing the config file a lot?

Comment on lines +7 to +8
library("data.table");library("dplyr");library("utils");
library("lubridate");find("read.table");library("readr");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these installed in prod already?

@erinyoung
Copy link
Member

Could you add a paragraph in the readme about how and when to use this script?

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

Successfully merging this pull request may close these issues.

3 participants