You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there anyway to join channels / form tuples based on the file name regex from different directories?
For example, I have 3 directories:
data/path1 and files x_variants_51459_52468_results.parquet, x_variants_0_1009_results.parquet ….
data/path2 and files y_variants_51459_52468_results.parquet, y_variants_0_1009_results.parquet …
data/path3 and files z_variants_51459_52468_results.parquet, x_variants_0_1009_results.parquet …
I would like to form tuples based on regex pattern inside file names.
For example: [x_variants_51459_52468_results.parquet, y_variants_51459_52468_results.parquet, z_variants_51459_52468_results.parquet]
I have lots of files so I would like to not specify the exact number pattern.
I would like to use the regex pattern pairing, somehow like this:
'/data/**/*{-can I do regex, like file.simpleName.find( ‘\d+\d+’)?-}_results.parquet’?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is there anyway to join channels / form tuples based on the file name regex from different directories?
For example, I have 3 directories:
data/path1 and files x_variants_51459_52468_results.parquet, x_variants_0_1009_results.parquet ….
data/path2 and files y_variants_51459_52468_results.parquet, y_variants_0_1009_results.parquet …
data/path3 and files z_variants_51459_52468_results.parquet, x_variants_0_1009_results.parquet …
I would like to form tuples based on regex pattern inside file names.
For example: [x_variants_51459_52468_results.parquet, y_variants_51459_52468_results.parquet, z_variants_51459_52468_results.parquet]
I have lots of files so I would like to not specify the exact number pattern.
I would like to use the regex pattern pairing, somehow like this:
'/data/**/*{-can I do regex, like file.simpleName.find( ‘\d+\d+’)?-}_results.parquet’?
Beta Was this translation helpful? Give feedback.
All reactions