{"id":23104772,"url":"https://github.com/vekteo/asrt_jspsych","last_synced_at":"2025-08-16T16:32:12.420Z","repository":{"id":44551191,"uuid":"258316160","full_name":"vekteo/ASRT_jsPsych","owner":"vekteo","description":"A self-paced Alternating Serial Reaction Time Task (ASRT) created with jsPSych.","archived":false,"fork":false,"pushed_at":"2022-12-12T13:19:46.000Z","size":5754,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-02-09T15:52:27.660Z","etag":null,"topics":["asrt","asrt-jspsych","reaction-time","sequence-learning"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vekteo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null}},"created_at":"2020-04-23T19:58:16.000Z","updated_at":"2023-05-02T04:48:17.000Z","dependencies_parsed_at":"2023-01-27T19:45:36.672Z","dependency_job_id":null,"html_url":"https://github.com/vekteo/ASRT_jsPsych","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vekteo%2FASRT_jsPsych","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vekteo%2FASRT_jsPsych/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vekteo%2FASRT_jsPsych/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vekteo%2FASRT_jsPsych/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vekteo","download_url":"https://codeload.github.com/vekteo/ASRT_jsPsych/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230044650,"owners_count":18164194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asrt","asrt-jspsych","reaction-time","sequence-learning"],"created_at":"2024-12-17T00:36:18.937Z","updated_at":"2024-12-17T00:36:19.526Z","avatar_url":"https://github.com/vekteo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alternating Serial Reaction Time Task created with jsPsych\n\n\u003ci\u003eCreated by the MEMO Team of Lyon Neuroscience Research Center (CRNL) (PI: Dezso Nemeth)\u003c/i\u003e\n\n\u003cimg src=\"static/logo_memo.png\" height=\"100\"\u003e\n\n\u003ch2\u003eCitation\u003c/h2\u003e\nIf you use the script, please include this citation in your manuscript:\n\nVékony, T. (2021). Alternating Serial Reaction Time Task created with jsPsych (Version 1.0.0) [Computer software]. https://doi.org/10.5281/zenodo.7124730\n\u003ca href=\"https://zenodo.org/badge/latestdoi/258316160\"\u003e\u003cimg src=\"https://zenodo.org/badge/258316160.svg\" alt=\"DOI\"\u003e\u003c/a\u003e\n\n\u003ch2\u003eAbout the task\u003c/h2\u003e\n\n\u003cp\u003eIn the task, four circles are presented on the screen horizontally. A target stimulus (a dog's head) appears in one of the four circles. The task of the user is to press the response key corresponding to the position of the target stimulus as fast and as accurately as they can.\u003c/p\u003e\n\n\u003cp\u003eBy default, the task begins with one block of practice with random trials (80 stimuli in each block). After that, 20 blocks of ASRT follows. Each block contains 10 repetitions of a randomly chosen 8-element sequence.\u003c/p\u003e\n\n\u003cp\u003eThe trials are images of dogs. The \u003cstrong\u003e's', 'f', 'j' and 'l'\u003c/strong\u003e keys on the keyboard are set as response keys (corresponding to the four positions from left to right).\u003c/p\u003e\n\n\u003cp\u003eIf correct response is given, the next element is presented after a 120 ms response-to-stimulus interval. If the response is incorrect (but active response key was pressed), the same target stimulus appears on the screen again with an interstimulus interval of 0 ms (i.e., remains on the screen).\u003c/p\u003e\n\n\u003cp\u003eAverage performance (mean accuracy and mean RT) is presented as a feedback after the end of the block with a personalized instruction:\u003c/p\u003e\n\n- if the mean accuracy of the block is less than 90%, it instructs to be more accurate.\n- if the mean RT of the block is over 350 ms, it instructs to be faster.\n- in other cases, it instructs to continue the task.\n\n\u003cp\u003eThe breaks between the blocks are \u003cstrong\u003eself-paced\u003c/strong\u003e. The user can continue the task when they press a response key.\u003c/p\u003e\n\n\u003cp\u003eAfter the end of the task, output data will be downloaded to the local machine (CSV format). If the user quits before the end of the task, the data will also be downloaded to the local machine.\u003c/p\u003e\n\n\u003ch2\u003eOutput variables\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003esuccess:\u003c/strong\u003e whether fullscreen mode was successfully started/ended (true or false)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003etrial_type:\u003c/strong\u003e jsPsych trialtype of the given trial (fullscreen, instructions, html-keyboard-response or serial-reaction-time)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003etrial_index:\u003c/strong\u003e the number of the given trials (all events considered, even instructions, feedback!)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003etime_elapsed:\u003c/strong\u003e the time elapsed from the start of the script in ms\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003einternal_code_id:\u003c/strong\u003e internal node id of the trial\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003esubject:\u003c/strong\u003e a 15-character long random subject ID for the online version, and customized subject number for the offline version\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003esession:\u003c/strong\u003e customized session number (for offline version only)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ebrowser_event:\u003c/strong\u003e browser events at the given trial (fullscreenenter, fullscreenexit, blur or focus)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eview_history:\u003c/strong\u003e only relavant at the instructions; the actions and the corresponding RTs during the reading of the instructions\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ert:\u003c/strong\u003e reaction time (RT) in ms - in the case of first responses to the trial, it shows the rt calculated from the appearence of the stimulus; in the case of not first responses, it shows the rt calculated from the last button press\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003estimulus:\u003c/strong\u003e stimulus on the screen; relevant only if instructions/feedback are present\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ekey_press:\u003c/strong\u003e number code of the key pressed\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ecorrect:\u003c/strong\u003e whether the response was correct (true or false)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003egrid:\u003c/strong\u003e layout of the positions (in a grid)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003etarget:\u003c/strong\u003e position of target stimulus (the 4 positions: 1: 0,0; 2: 0,1; 3: 0,2; 4: 0,3)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003er_or_p:\u003c/strong\u003e random or pattern stimulus (R or P)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eblock:\u003c/strong\u003e number of the block (1-20)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003efirst_response:\u003c/strong\u003e if the answer is the first answer to the given trial (yes: 1; no: 0)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003etrial_number:\u003c/strong\u003e number of the trial within the block (1-85)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003esequence:\u003c/strong\u003e the sequence used during the task (assigned randomly at the beginning)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eis_practice:\u003c/strong\u003e whether it was a practice trial (yes: 1; 0: no)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ecorrect_pos:\u003c/strong\u003e the position of the target stimulus (1-4)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ecorrect_resp_button:\u003c/strong\u003e the response key that should be pressed to respond correctly ('s', 'f', 'j' or 'l')\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eresp_button:\u003c/strong\u003e the pressed response key ('s', 'f', 'j' or 'l')\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ecumulative_RT:\u003c/strong\u003e the RT from the beginning of the first appeareance of the trial in ms\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eactual_triplet:\u003c/strong\u003e the triplet to what response was given (three digits indicating the positions of the target stimulus in the last three trials)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003etriplet_type:\u003c/strong\u003e the type of the triplet (high-probability triplet: H; low-probability triplet: L, first trials: X, trill: T, repetition: T)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eisWarning:\u003c/strong\u003e the string \"warning\" appears if a warning was shown due to low (\u003c80%) overall performance.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eSettings\u003c/h2\u003e\nIn the \u003ci\u003eparameters.js\u003c/i\u003e file, several parameters can be modified by the user:\n\u003cli\u003e\u003cstrong\u003elanguage:\u003c/strong\u003e the language of the task. Available languages: english (en), hungarian (hu), french (fr), portuguese (pt)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003enumberOfPracticeBlocks:\u003c/strong\u003e the number of practice blocks at the beginning\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003enumberOfBlocks:\u003c/strong\u003e the number of learning blocks (besides the practice blocks)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003enumberOfSequenceRepetitons:\u003c/strong\u003e the number of repetitons of the four-element sequence\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003epatternTrialImage:\u003c/strong\u003e the image used for the pattern trials\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003erandomTrialImage:\u003c/strong\u003e the image used for the random trials\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ersi:\u003c/strong\u003e the response-to-stimulus interval after a button press (in ms)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003einitialDelay:\u003c/strong\u003e the delay before the first trial of a block\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eoverallWarning:\u003c/strong\u003e a warning can be shown to the participants if their performance drops below 80% throughout the whole task\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eisOffline:\u003c/strong\u003e if true, a screen will appear before the task where we can indicate the subject and session number. In that case, the sequence selected for the participants will depend on the subject number. Always the same sequence will be selected for a specific subject number (in the different sessions). If false, a randomly generated subject number will be allocated to the participant, and the sequence will be selected randomly. In that case, the session number is always 1.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eresponseKeys:\u003c/strong\u003e the response keys\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eisFirstFiveRandom:\u003c/strong\u003e If true, at the beginning of each block, the first five trials will be random (5 random + 80 sequence elements = 85 trials/block). If false, no random trials will be presented at the beginning of the task (80 sequence elements = 80 trials/block)\u003c/li\u003e\n\n\n\u003ch2\u003eHow to start the task\u003c/h2\u003e\nOpen the \u003ci\u003eindex.html\u003c/i\u003e file in the \u003ci\u003emain\u003c/i\u003e folder.\n\n\u003ch2\u003eBrowser requirements\u003c/h2\u003e\n\u003cp\u003eAny browser except Safari and Internet Explorer. Recommended: Chrome.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvekteo%2Fasrt_jspsych","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvekteo%2Fasrt_jspsych","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvekteo%2Fasrt_jspsych/lists"}