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

Copy SDRF functionality to output dir #22

Merged
merged 6 commits into from Feb 23, 2021
Merged

Copy SDRF functionality to output dir #22

merged 6 commits into from Feb 23, 2021

Conversation

pcm32
Copy link
Member

@pcm32 pcm32 commented Feb 22, 2021

Currently the condensed_sdrf script has a functionality to copy the IDF to the output directory, this gives the functionality to also copy the SDRF. This is needed to expose the SDRF files of baseline studies for meta-analysis.

@pcm32 pcm32 marked this pull request as draft February 22, 2021 17:43
@pcm32 pcm32 marked this pull request as ready for review February 22, 2021 18:25
my ( $investigation, $output_dir, $idf_abs_path ) = @_;
foreach my $sdrf ( @{ $investigation->get_sdrfs() } ) {
my $filename = $sdrf->get_uri()->file();
if( !File::Spec->file_name_is_absolute( $filename ) ) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mostly assumes that SDRFs are in the same directory as the IDF, which is sound for Atlas, but this is not very defensive for more complex cases.

Copy link
Member

@pinin4fjords pinin4fjords left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pcm32 pcm32 merged commit f9b8677 into develop Feb 23, 2021
@pcm32 pcm32 deleted the feature/copy_sdrf branch February 23, 2021 16:31
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

Successfully merging this pull request may close these issues.

None yet

2 participants