Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

V1.2 #14

Merged
merged 7 commits into from
Apr 24, 2019
Merged

V1.2 #14

merged 7 commits into from
Apr 24, 2019

Conversation

aledj2
Copy link
Contributor

@aledj2 aledj2 commented Apr 23, 2019

This change is Reviewable

@aledj2 aledj2 requested a review from NMNS93 April 23, 2019 13:38
@andyb3 andyb3 self-assigned this Apr 24, 2019
Copy link
Contributor

@andyb3 andyb3 left a comment

Choose a reason for hiding this comment

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

+@andyb3

Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 7 unresolved discussions (waiting on @aledj2 and @NMNS93)


backup_runfolder.py, line 84 at r1 (raw file):

    # Os.path.expanduser allows expands tilde signs (~) to a string containing the user home directory.
    parser.add_argument('-i', '--runfolder', required=True, help='An Illumina runfolder directory', type=os.path.expanduser)
    parser.add_argument('-a', '--auth-token', help='A string or file containing a DNAnexus authorisation key used to access the DNANexus project. Default = ~/.dnanexus_auth_token', default='~/.dnanexus_auth_token', type=os.path.expanduser)

The auth key is now located in /usr/local/src/mokaguys/


backup_runfolder.py, line 337 at r1 (raw file):

        
        local_file_count = "find " + self.runfolder + " -type f " + grep_ignore + " | wc -l"
        print (local_file_count)

Is this print statement needed?


backup_runfolder.py, line 343 at r1 (raw file):

        (out, err) = proc.communicate()
        # Write output stream to logfile and terminal
        self.logger.info('%s files to be uploaded (excluding any with ignore terms in filename or path)', out.decode().rstrip())

These should already have been uploaded by this point? Could 'files to be uploaded' be changed to 'files should have been uploaded'


backup_runfolder.py, line 347 at r1 (raw file):

        # count number of uploaded files
        uploaded_file_count = "dx find data --project %s | wc -l" % (self.project)
        print(uploaded_file_count)

Is this print statement needed?


backup_runfolder.py, line 353 at r1 (raw file):

        (out, err) = proc.communicate()
        # Write output stream to logfile and terminal
        self.logger.info('%s files present in project', out.decode().rstrip())

Could this be 'present in DNAnexus project'?


backup_runfolder.py, line 358 at r1 (raw file):

            # test for presense of any ignore strings in project
            uploaded_file_count_ignore = "dx find data --project %s " % (self.project) + grep_ignore.replace("-v","") + " | wc -l" 
            print (uploaded_file_count_ignore)

Is this print statement needed?


backup_runfolder.py, line 364 at r1 (raw file):

            (out, err) = proc.communicate()
            # Write output stream to logfile and terminal
            self.logger.info('%s files present in project containing one of the ignore terms. NB this may not be accurate if the ignore term is found in the result of dx find data (eg present in project name)', out.decode().rstrip())

Could this be 'present in DNAnexus project'?

Copy link
Contributor Author

@aledj2 aledj2 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 2 files reviewed, 7 unresolved discussions (waiting on @andyb3 and @NMNS93)


backup_runfolder.py, line 84 at r1 (raw file):

Previously, andyb3 wrote…

The auth key is now located in /usr/local/src/mokaguys/

Done.


backup_runfolder.py, line 337 at r1 (raw file):

Previously, andyb3 wrote…

Is this print statement needed?

Done.


backup_runfolder.py, line 343 at r1 (raw file):

Previously, andyb3 wrote…

These should already have been uploaded by this point? Could 'files to be uploaded' be changed to 'files should have been uploaded'

Done.


backup_runfolder.py, line 347 at r1 (raw file):

Previously, andyb3 wrote…

Is this print statement needed?

Done.


backup_runfolder.py, line 353 at r1 (raw file):

Previously, andyb3 wrote…

Could this be 'present in DNAnexus project'?

Done.


backup_runfolder.py, line 358 at r1 (raw file):

Previously, andyb3 wrote…

Is this print statement needed?

Done.


backup_runfolder.py, line 364 at r1 (raw file):

Previously, andyb3 wrote…

Could this be 'present in DNAnexus project'?

Done.

Copy link
Contributor

@andyb3 andyb3 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @NMNS93)

@andyb3 andyb3 merged commit f30ae4d into master Apr 24, 2019
@andyb3 andyb3 deleted the v1.2 branch April 24, 2019 08:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants