Skip to content

Commit 1b88f03

Browse files
committed
fixing dataset
1 parent c5ad3e6 commit 1b88f03

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

DESCRIPTION

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
Package: oasis
22
Type: Package
3-
Title: OASIS Lesion Segmentation
3+
Title: Multiple Sclerosis Lesion Segmentation using Magnetic Resonance Imaging (MRI)
44
Version: 1.0
55
Date: 2015-09-02
66
Author: Elizabeth Sweeney, John Muschelli
77
Maintainer: Elizabeth Sweeney <[email protected]>
8-
Description: This package trains and makes predictions from the OASIS method, described in detail in the paper "OASIS is Automated Statistical Inference for Segmentation, with applications to multiple sclerosis lesion segmentation in MRI" (http://www.sciencedirect.com/science/article/pii/S2213158213000235). OASIS is a method for multiple sclerosis (MS) lesion segmentation on structural magnetic resonance image (MRI) studies. OASIS creates probability maps of lesion presence using the FLAIR, T2, T1, and PD structural MRI volumes. This packages allows for training of the OASIS model and prediction of OASIS probability maps from a trained model with user supplied studies that have a gold standard lesion segmentation masks. The package will also create OASIS probaility maps for MRI studies using the OASIS model from the OASIS paper if no gold standard lesion segmentation masks are avaliable.
9-
Citation:
8+
Description: Trains and makes predictions from the OASIS method, described in detail in the paper "OASIS is Automated Statistical Inference for Segmentation, with applications to multiple sclerosis lesion segmentation in MRI" (http://www.sciencedirect.com/science/article/pii/S2213158213000235). OASIS is a method for multiple sclerosis (MS) lesion segmentation on structural magnetic resonance image (MRI) studies. OASIS creates probability maps of lesion presence using the FLAIR, T2, T1, and PD structural MRI volumes. This packages allows for training of the OASIS model and prediction of OASIS probability maps from a trained model with user supplied studies that have a gold standard lesion segmentation masks. The package will also create OASIS probaility maps for MRI studies using the OASIS model from the OASIS paper if no gold standard lesion segmentation masks are avaliable.
109
Depends:
1110
fslr,
1211
oro.nifti

R/oasis_predict.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ oasis_predict <- function(flair, ##flair volume of class nifti
8989

9090
## make the model predictions
9191
if(is.null(model)){
92-
predictions <- predict(oasis_model, newdata = oasis_dataframe, type = 'response')
92+
predictions <- predict( oasis::oasis_model, newdata = oasis_dataframe, type = 'response')
9393
} else {
9494
predictions <- predict(model, newdata = oasis_dataframe, type = 'response')
9595
}

R/oasis_training.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ oasis_training <- function(..., ##dataframes from function
2121
oasis_model <- glm(formula = GoldStandard ~ FLAIR_10 *FLAIR +
2222
FLAIR_20*FLAIR + PD_10 *PD + PD_20 *PD
2323
+ T2_10 *T2 + T2_20 *T2 + T1_10 *T1
24-
+ T1_20 *T1 , data = oasis_dataframe, family=binomial)
24+
+ T1_20 *T1 , data = train_vectors_multi, family=binomial)
2525

2626
##clean up the oasis model
2727
oasis_model$y = c()

oasis.Rproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ BuildType: Package
1616
PackageUseDevtools: Yes
1717
PackageInstallArgs: --no-multiarch --with-keep.source
1818
PackageCheckArgs: --as-cran
19-
PackageRoxygenize: rd,collate,namespace
19+
PackageRoxygenize: rd,collate,namespace,vignette

temp

-4
This file was deleted.

0 commit comments

Comments
 (0)