fixup rsync invocation#12
Conversation
=== 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 ^^^
There was a problem hiding this comment.
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+"/"); |
There was a problem hiding this comment.
The rsync flags can be optimized for better efficiency and simplicity:
- Remove
-z(compression): The dataset files (such asexprMatrix.tsv.gzand 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. - Remove
-p(preserve permissions): The-a(archive) option already includes-p(preserve permissions), making the explicit-pflag redundant.
Using rsync -av is cleaner and more efficient.
| 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+"/"); |
There was a problem hiding this comment.
The rsync flags can be optimized for better efficiency and simplicity:
- Remove
-z(compression): The dataset files (such asexprMatrix.tsv.gzand 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. - Remove
-p(preserve permissions): The-a(archive) option already includes-p(preserve permissions), making the explicit-pflag redundant.
Using rsync -av is cleaner and more efficient.
| 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+"/"); |
No description provided.