Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to remove mnc file based on a query #172

Merged
merged 13 commits into from
Dec 19, 2016

Conversation

gluneau
Copy link
Contributor

@gluneau gluneau commented Nov 17, 2016

Tu use this wrapper script (deletemincsqlwrapper.pl), you should only need to update the SQL statement.

LEFT JOIN files_qcstatus AS fq USING (FileID)
LEFT JOIN tarchive AS t ON f.TarchiveSource=t.TarchiveID
WHERE f.SeriesUID='1.3.12.2.1107.5.2.32.35177.2015072521545163128256406.0.0.0' or f.SeriesUID='1.3.12.2.1107.5.2.32.35177.2015072822492087585653675.0.0.0' and
((pf.ParameterTypeID=329 and pf.`VALUE` like '%acquisition:direction_x = 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.%')
Copy link
Contributor

Choose a reason for hiding this comment

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

@gluneau

hardcoded ParameterTypeID and SeriesUID

# -acquisition_protocol " . $fF->{'protocol'}
# -profile prod
# ../../../../" . $fF->{'ArchiveLocation'}
my $tar_loader_cmd = "../uploadNeuroDB/tarchiveLoader -profile null_grads -seriesuid " . $fF->{'SeriesUID'} .
Copy link
Contributor

Choose a reason for hiding this comment

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

@gluneau

$profile instead of null_grads

@gluneau gluneau changed the title Script to remove and add mnc file based on a query Script to remove mnc file based on a query Dec 9, 2016
@gluneau gluneau modified the milestones: 17.0, 17.1 Dec 9, 2016
@gluneau gluneau dismissed MounaSafiHarab’s stale review December 9, 2016 15:48

other script used instead

@samirdas samirdas merged commit f68b1b8 into aces:17.0-dev Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants