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

[Feature request] Accept piped file paths in CLI #42

Open
nx10 opened this issue Oct 15, 2024 · 0 comments
Open

[Feature request] Accept piped file paths in CLI #42

nx10 opened this issue Oct 15, 2024 · 0 comments

Comments

@nx10
Copy link
Collaborator

nx10 commented Oct 15, 2024

Hi,

I’d like to request a feature for bids2table that allows the CLI to accept file paths via standard input (stdin) instead of requiring a root directory. This would make it easier to work with file paths from various sources like cloud storage or environments where direct access to the entire directory is limited.

Examples:

  1. Cloud storage:

    aws s3 ls s3://my-bids-dataset/ --recursive | awk '{print $4}' | bids2table
  2. Integration with other tools:

    find /my/data -type f -name "*.nii.gz" | bids2table
  3. From a file:

    cat bids_file_paths.txt | bids2table
  4. Limited access:

    echo "/restricted_path/sub-01/anat/sub-01_T1w.nii.gz" | bids2table

Let me know what you think!

Thanks!

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

1 participant