Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cmccabe
    Senior Member
    • Jul 2012
    • 355

    bam transfer

    Is there a command that might help to transfer a BAM file to a website? Thank you
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    What sort of transfer? Uploading a bam file to a tool/site (e.g. galaxy) or uploading it to a web location so it becomes available for others to download.

    For the latter, you would need to be able to access the backend server (so you can upload the file via scp/sftp). You will need an account on the server in question.

    Comment

    • cmccabe
      Senior Member
      • Jul 2012
      • 355

      #3
      It is the latter of the two (transfer to site to download from). Would lftp work?

      3 files are put in a folder named "test" (BAM ~20GB, VCF, and coverage analysis) then zipped using:
      Code:
       tar -zcf /path/to/file.tar.gz -C /Desktop/test
      Code:
      lftp https://something.sharefile.com/login.aspx
      lftp https://something.sharefile.com/login.aspx:~> user xxxxxx
      Password: xxxxxxx
      lftp https://something.sharefile.com/login.aspx:~> mirror -R /home/dnascopeV/Desktop/Test
      To view the transfer
      Code:
       lftp https://something.sharefile.com/login.aspx:~> ls
      To unzip (not sure if this will work as it might be basic HTTP and not what I need):
      Code:
       wget --http-user cmccabe --http -passwd xxxx*** https://something.sharefile.com/login.aspx -O - | tar -zxf -
      Thanks .
      Last edited by cmccabe; 06-05-2015, 10:10 AM. Reason: added code

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Looks like you have everything under control :-)

        I would just download (reversing lftp) and then unzip locally to be safe after the transfer is complete.

        Comment

        • cmccabe
          Senior Member
          • Jul 2012
          • 355

          #5
          can lftp be used in cygwin? Thank you .

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            If you can compile it then yes. Give it a try.

            Comment

            • cmccabe
              Senior Member
              • Jul 2012
              • 355

              #7
              I am not sure what you mean by downloading (reversing lftp), can you use it in an example. I just learned lftp a few weeks ago and finding it very useful. Thank you .

              Comment

              Latest Articles

              Collapse

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 06-09-2026, 11:58 AM
              0 responses
              15 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-05-2026, 10:09 AM
              0 responses
              26 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-04-2026, 08:59 AM
              0 responses
              37 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-02-2026, 12:03 PM
              0 responses
              61 views
              0 reactions
              Last Post SEQadmin2  
              Working...