scala.svd.finish: Converts ScaLAPACK SVD output to R data

Description Usage Arguments Examples

Description

Reads directory with successful ScaLAPACK SVD run and creates directory with results: 1) Singular Values 2) Left Singular Vectors 3) Right Singular Vectors transpose

Usage

1
2
scala.svd.finish(proc.dir, BIGarr = TRUE, write.function = NULL,
  extension = "", results.dir)

Arguments

proc.dir

directory where all the ScaLAPACK SVD computations were run.

BIGarr

LOGICAL. If true, output is folders "Left_Singular_Vectors" and "Right_Singular_Vectors_transpose", inside which are many files. Each file corresponds to columns of the Left Singular and Right Singular (transpose) matrices. If false, Left_Singular_Vectors.RData and Right_Singular_Vectors_transpose.RData files are made containing the Left Singular and Right Singular (transpose) matrices.

write.function

CHARACTER. String of function name that writes vectors (needed if BIGarr=TRUE) to files. Function can only have two arguments. First is for the vector, Second is for the filename.

extension

CHARACTER Extension of filenames created

results.dir

Directory to output results

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
#### Example to read directory with successful ScaLAPACK SVD run ("gene_svd")
####  and output results to directory ("gene_svd_results").
####  With BIGarr=TRUE

# Create Write Function
simple.write.function=function(vec,fl){
   cat(vec,sep='\n',file=fl)
}

# call scala.svd.finish
scala.svd.finish(proc.dir="gene_svd",
                 BIGarr=TRUE,write.function="simple.write.function",
                 extension=".txt",results.dir="gene_svd_results")

#### With BIGarr=FALSE
# call scala.svd.finish
scala.svd.finish(proc.dir="gene_svd",BIGarr=FALSE,results.dir="gene_svd_results")

## End(Not run)

DJFernandes/RscalapackSVD documentation built on May 6, 2019, 1:17 p.m.