cosin_dis_diffMatrix: parallel calculation for cosin similarity between two...

View source: R/MUSIC.r

cosin_dis_diffMatrixR Documentation

parallel calculation for cosin similarity between two matrices.

Description

To calculate the cosine simularity between any row between two matrices with parallel calculation strategy.

Usage

cosin_dis_diffMatrix(matrix1, matrix2, cpu_num)

Arguments

matrix1

A matrix. Taking gene expression profile as example, the column is sample and the row is gene.

matrix2

A matrix. Taking gene expression profile as example, the column is sample and the row is gene.

cpu_num

The cpu number for parallel computation.

Value

A matrix to show the cosin similarity between any points between two matrices.

Author(s)

Bin Duan


bm2-lab/MASCOT documentation built on April 19, 2024, 4:35 p.m.