Skip to content

Commit

Permalink
Update heatcluster.py
Browse files Browse the repository at this point in the history
sep to separator
  • Loading branch information
DrB-S authored Feb 1, 2024
1 parent adc6dbc commit e3c3f41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions heatcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ def main(args):

def read_snp_matrix(file):
logging.debug('Determining if file is comma or tab delimited')
tabs = pl.scan_csv(file, n_rows=1, sep='\t')
commas = pl.scan_csv(file, n_rows=1, sep=',')
tabs = pl.scan_csv(file, n_rows=1, separator='\t')
commas = pl.scan_csv(file, n_rows=1, separator=',')
if len(tabs.columns) > len(commas.columns):
logging.debug('The file is tab-delimited')
df = pl.read_csv(file, sep='\t')
df = pl.read_csv(file, separator='\t')
else:
logging.debug('The file is comma-delimited')
df = pl.read_csv(file, sep=',')
df = pl.read_csv(file, separator=',')
return df

def clean_and_read_df(df):
Expand Down

0 comments on commit e3c3f41

Please sign in to comment.