Skip to content

fixup rsync invocation#12

Open
yarikoptic wants to merge 1 commit into
ucscGenomeBrowser:developfrom
yarikoptic:bf-rsync
Open

fixup rsync invocation#12
yarikoptic wants to merge 1 commit into
ucscGenomeBrowser:developfrom
yarikoptic:bf-rsync

Conversation

@yarikoptic

Copy link
Copy Markdown

No description provided.

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "git-sedi 'rsync --avz' 'rsync -avz'",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request corrects a typo in the rsync command flags from --avzp to -avzp in cellBrowser.js. The reviewer suggests further optimizing the rsync flags to -av by removing -z (since the datasets are already compressed, avoiding unnecessary CPU usage) and -p (which is redundant as it is already included in -a).

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

htmls.push("<p><b>To bulk download all datasets in this collection via rsync:</b><br>");
htmls.push("<code style='display:inline-block; background:#f4f4f4; border:1px solid #ddd; padding:4px 8px; border-radius:3px; font-size:12px; user-select:all'>");
htmls.push("rsync --avzp hgdownload.gi.ucsc.edu::cells/"+datasetInfo.name+"/ ./"+datasetInfo.name+"/");
htmls.push("rsync -avzp hgdownload.gi.ucsc.edu::cells/"+datasetInfo.name+"/ ./"+datasetInfo.name+"/");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The rsync flags can be optimized for better efficiency and simplicity:

  1. Remove -z (compression): The dataset files (such as exprMatrix.tsv.gz and coordinate binaries) are already compressed (gzipped). Enabling rsync compression (-z) on already compressed files wastes CPU cycles on both the client and the UCSC download server without providing any additional bandwidth savings, and can actually slow down the transfer.
  2. Remove -p (preserve permissions): The -a (archive) option already includes -p (preserve permissions), making the explicit -p flag redundant.

Using rsync -av is cleaner and more efficient.

Suggested change
htmls.push("rsync -avzp hgdownload.gi.ucsc.edu::cells/"+datasetInfo.name+"/ ./"+datasetInfo.name+"/");
htmls.push("rsync -av hgdownload.gi.ucsc.edu::cells/"+datasetInfo.name+"/ ./"+datasetInfo.name+"/");

htmls.push("<p><b>Bulk download via rsync:</b><br>");
htmls.push("<code style='display:inline-block; background:#f4f4f4; border:1px solid #ddd; padding:4px 8px; border-radius:3px; font-size:12px; user-select:all'>");
htmls.push("rsync --avzp hgdownload.gi.ucsc.edu::cells/"+datasetInfo.name+"/ ./"+datasetInfo.name+"/");
htmls.push("rsync -avzp hgdownload.gi.ucsc.edu::cells/"+datasetInfo.name+"/ ./"+datasetInfo.name+"/");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The rsync flags can be optimized for better efficiency and simplicity:

  1. Remove -z (compression): The dataset files (such as exprMatrix.tsv.gz and coordinate binaries) are already compressed (gzipped). Enabling rsync compression (-z) on already compressed files wastes CPU cycles on both the client and the UCSC download server without providing any additional bandwidth savings, and can actually slow down the transfer.
  2. Remove -p (preserve permissions): The -a (archive) option already includes -p (preserve permissions), making the explicit -p flag redundant.

Using rsync -av is cleaner and more efficient.

Suggested change
htmls.push("rsync -avzp hgdownload.gi.ucsc.edu::cells/"+datasetInfo.name+"/ ./"+datasetInfo.name+"/");
htmls.push("rsync -av hgdownload.gi.ucsc.edu::cells/"+datasetInfo.name+"/ ./"+datasetInfo.name+"/");

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.

1 participant