'transfer_data.py': add option to shorten shared filenames - #1179
Merged
Merged
Conversation
Adds a new parameter 'short_names' to user-defined 'destination' sections in the configuration file, to enable shortened file names to be requested when transferring data.
Adds new '--short_names' option, which causes the utility to make shorter names for various shared files (QC reports, ZIP files and tgz archives) by omitting the run name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the
transfer_data.pycommand line file sharing utility to add a new option--short_names, which causes the utility to use shorter names for files like ZIP archives, QC reports and.tgzfiles for CellRanger outputs.The names are shortened by omitting the run name from the file basenames and just using the project name. Note that no attempt is made to shorten the names of source Fastq files.
The
auto_processconfiguration has also been updated to add a newshort_namesparameter for each user-defined destination, so that this option can be turned on by default.The use case for this functionality is hosting of data on an
nginxbased webserver, where the auto-indexing limits displayed file names to 50 characters (often truncating the distinguishing parts of file names and hiding them from the user).