calculate_between_sample_distance: Calculate distance between sample data before and after...

View source: R/calculate_distance.R

calculate_between_sample_distanceR Documentation

Calculate distance between sample data before and after registration

Description

Calculate distance between sample data before and after registration

Usage

calculate_between_sample_distance(
  registration_results,
  gene_col = "locus_name",
  compare_ref_vs_transform = TRUE,
  accession_data_ref
)

Arguments

registration_results

Result of registration process using scale_and_register_data.

gene_col

Column name of gene accession, default is locus_name.

compare_ref_vs_transform

If TRUE, the default, only comparison between reference data and data to transform is considered.

accession_data_ref

Accession name of reference data.

Value

This function returns a list of data frames which includes:

distance_mean_df

distance of mean expression values.

distance_scaled_mean_df

distance of scaled mean expression (all genes).

distance_scaled_mean_df_only_nonreg

distance of scaled mean expression (only non-registered genes).

distance_scaled_mean_df_only_reg

distance of scaled mean expression (only registered genes).

distance_registered_df

distance of registered & scaled mean expression (all genes).

distance_registered_df_only_reg

distance of registered & scaled mean expression (only registered genes).


greatR documentation built on June 9, 2022, 1:05 a.m.