Skip to content

Commit

Permalink
fix untarg import
Browse files Browse the repository at this point in the history
  • Loading branch information
grlloyd committed Jun 27, 2024
1 parent 7eefd2b commit 6afe5ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: metabolomicsWorkbenchR
Type: Package
Title: Metabolomics Workbench in R
Version: 1.14.0
Version: 1.14.1
Authors@R: c(
person(
c("Gavin","Rhys"),
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Changes in 1.15.1
+ fix untarg import

Changes in 1.11.1
+ further vignette cache improvements

Expand Down
8 changes: 4 additions & 4 deletions R/class_def.R
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ setMethod(f = 'do_query',
return(out)
} else if (input_item$name == 'analysis_id') {
df = do_query(context$name,input_item$name,input_value,'datatable')
nf=attributes(df)$number_of_factors
nf = attributes(df)$number_of_factors

X=as.data.frame(t(df))

Expand Down Expand Up @@ -869,10 +869,10 @@ setMethod(f = 'do_query',
df = do_query(context$name,input_item$name,input_value,'untarg_data')
fq = do_query('study','analysis_id',input_value,'untarg_factors')

fq=fq[,-1]
fq$count=NULL

SM=as.data.frame(df[,colnames(fq)])
df[,colnames(fq)]=NULL
SM=df[,colnames(fq),drop=FALSE]
df[,colnames(fq),drop=FALSE]=NULL

df=as.data.frame(t(df))
VM=data.frame(feature_id=rownames(df))
Expand Down

0 comments on commit 6afe5ce

Please sign in to comment.