Skip to content

Commit

Permalink
csvs bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
baxpr committed Jul 24, 2024
1 parent ffb552f commit 3ed6e0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/stats_csvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import pandas
import sys

parser = argparse.ArgumentParser()
parser.add_argument('--xcpd_dir', required=True,
help='Absolute path of xcpd output (must match subject/session/etc of fmriprep)')
parser.add_argument('--atlas', required=True,
Expand All @@ -28,7 +29,8 @@
)
if len(qc_tsv)!=1:
raise Exception(f'Found {len(qc_tsv)} qc .tsv instead of 1')
qc = qc_tsv[0].get_df()
qc_tsv = qc_tsv[0]
qc = qc_tsv.get_df()
qc.to_csv(os.path.join(args.out_dir, 'qc.csv'), index=False)

# Find coverage file
Expand Down

0 comments on commit 3ed6e0a

Please sign in to comment.