Skip to content

Commit

Permalink
Disable unit variance scalling. Filter low expressed genes/transcript…
Browse files Browse the repository at this point in the history
…s >0 instead of >1. (#10)
  • Loading branch information
fgypas authored Oct 15, 2020
1 parent 39a08a7 commit 547a106
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/zpca-tpm
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def main():
parser.add_argument(
"--tpm-filter",
dest="tpm_filter",
default=1,
help="Filter genes/transcripts with mean expression less than the provided filter. Default: 1",
default=0,
help="Filter genes/transcripts with mean expression less than the provided filter. Default: 0",
required=False,
)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name='zpca',
version='0.5',
version='0.7',
description="PCA analysis for genes or transcripts.",
author="Foivos Gypas",
author_email='[email protected]',
Expand Down
2 changes: 1 addition & 1 deletion zpca/zpca.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def perform_pca(df, n_components):

df = df.astype(float)

scaled_data = preprocessing.scale(df.T)
scaled_data = preprocessing.scale(df, with_std=False)

pca = PCA(n_components=n_components)
pca.fit(scaled_data)
Expand Down

0 comments on commit 547a106

Please sign in to comment.