Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About 'sinh' #17

Open
yuhuang-cst opened this issue Nov 7, 2019 · 1 comment
Open

About 'sinh' #17

yuhuang-cst opened this issue Nov 7, 2019 · 1 comment

Comments

@yuhuang-cst
Copy link

  1. The cell-gene matrix from the same batch should be stored in the same '.csv' located in 'input_dir'. Right?
  2. The values of cell-gene matrix stored in '.csv' represent the raw counts, because the 'get_data' function will transform them with 'math.asinh'. Right?
  3. Why 'output_batch_correction' function doesn't take 'sinh' to get imputated raw count matrix?
    #recon = sinh(recon)
  4. If '3.' holds, the data used for clustering will be transformed by 'math.asinh' twice: one is in the batch correction stage, the other is in cluster stage.
@ashipde
Copy link

ashipde commented Apr 23, 2020

It seems that for clustering, SAUCIE uses batch-corrected data (asinh values) if SAUCIE was also directed to do batch-correction. Raw data will be used if batch-correction is not specified. Thus, asinh transformation will occur only once, unless raw data are asinh values, which it seems will be so if SAUCIE is used separately to first batch-correct and then cluster (see issue #22). So having an option to output non-asinh data will be good.

(SAUCIE.py)
# CLUSTERING
if args.cluster:
    if args.batch_correct:
        input_files = sorted(glob.glob(os.path.join(args.output_dir, 'batch_corrected', '*.{}'.format(args.format))))
    else:
        input_files = rawfiles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants